mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d: Set VK_BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT for upload buffers.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
acd5417f8b
commit
8589935420
@ -723,16 +723,13 @@ HRESULT vkd3d_create_buffer(struct d3d12_device *device,
|
|||||||
| VK_BUFFER_USAGE_VERTEX_BUFFER_BIT
|
| VK_BUFFER_USAGE_VERTEX_BUFFER_BIT
|
||||||
| VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT;
|
| VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT;
|
||||||
|
|
||||||
if (heap_type == D3D12_HEAP_TYPE_DEFAULT)
|
if (device->vk_info.EXT_conditional_rendering)
|
||||||
{
|
buffer_info.usage |= VK_BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT;
|
||||||
if (device->vk_info.EXT_conditional_rendering)
|
|
||||||
buffer_info.usage |= VK_BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT;
|
|
||||||
|
|
||||||
if (device->vk_info.EXT_transform_feedback)
|
if (heap_type == D3D12_HEAP_TYPE_DEFAULT && device->vk_info.EXT_transform_feedback)
|
||||||
{
|
{
|
||||||
buffer_info.usage |= VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT
|
buffer_info.usage |= VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT
|
||||||
| VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT;
|
| VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (heap_type == D3D12_HEAP_TYPE_UPLOAD)
|
if (heap_type == D3D12_HEAP_TYPE_UPLOAD)
|
||||||
|
Loading…
Reference in New Issue
Block a user