dzn: For CmdBindIndexBuffer, look at the graphics pipeline instead of last used

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20364>
This commit is contained in:
Jesse Natalie 2022-12-16 13:33:58 -08:00
parent a81e832af0
commit 33e2444384
2 changed files with 3 additions and 6 deletions

View file

@ -1,6 +1,2 @@
dEQP-VK.query_pool.concurrent_queries.primary_command_buffer
.*multiple_interpolation.*
dEQP-VK.draw.renderpass.indirect_draw.indexed_data_from_compute.indirect_draw_param_count_instanced.first_instance.triangle_strip
dEQP-VK.draw.renderpass.indirect_draw.indexed_data_from_compute.indirect_draw.triangle_list
dEQP-VK.draw.renderpass.indirect_draw.indexed_data_from_compute.indirect_draw_count_instanced.no_first_instance.triangle_list

View file

@ -4898,9 +4898,10 @@ dzn_CmdBindIndexBuffer(VkCommandBuffer commandBuffer,
cmdbuf->state.dirty |= DZN_CMD_DIRTY_IB;
const struct dzn_graphics_pipeline *pipeline =
(const struct dzn_graphics_pipeline *)cmdbuf->state.pipeline;
(const struct dzn_graphics_pipeline *)cmdbuf->state.bindpoint[VK_PIPELINE_BIND_POINT_GRAPHICS].pipeline;
if (pipeline && dzn_graphics_pipeline_get_desc_template(pipeline, ib_strip_cut))
if (pipeline &&
dzn_graphics_pipeline_get_desc_template(pipeline, ib_strip_cut))
cmdbuf->state.bindpoint[VK_PIPELINE_BIND_POINT_GRAPHICS].dirty |= DZN_CMD_BINDPOINT_DIRTY_PIPELINE;
}