mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Add FIXME() for unsupported strip cut values.
In Vulkan, the strip cut value is derived from the current index buffer format. We could recompile the pipeline to handle more cases. 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:
committed by
Alexandre Julliard
parent
c74074d93f
commit
a1ad45be69
@@ -2236,11 +2236,9 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
|
||||
switch (desc->IBStripCutValue)
|
||||
{
|
||||
case D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED:
|
||||
graphics->primitive_restart_enable = VK_FALSE;
|
||||
break;
|
||||
case D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFF:
|
||||
case D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFFFFFF:
|
||||
graphics->primitive_restart_enable = VK_TRUE;
|
||||
graphics->index_buffer_strip_cut_value = desc->IBStripCutValue;
|
||||
break;
|
||||
default:
|
||||
WARN("Invalid index buffer strip cut value %#x.\n", desc->IBStripCutValue);
|
||||
@@ -2506,7 +2504,7 @@ VkPipeline d3d12_pipeline_state_get_or_create_pipeline(struct d3d12_pipeline_sta
|
||||
ia_desc.pNext = NULL;
|
||||
ia_desc.flags = 0;
|
||||
ia_desc.topology = topology;
|
||||
ia_desc.primitiveRestartEnable = graphics->primitive_restart_enable;
|
||||
ia_desc.primitiveRestartEnable = !!graphics->index_buffer_strip_cut_value;
|
||||
|
||||
blend_desc.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;
|
||||
blend_desc.pNext = NULL;
|
||||
|
||||
Reference in New Issue
Block a user