mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
radv: only dirty the index type when necessary with DGC
This should only be needed for non-indexed draws and it's already dirty if the DGC binds an index buffer. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23761>
This commit is contained in:
parent
2d97cc89fb
commit
3b329e195e
1 changed files with 7 additions and 1 deletions
|
|
@ -9365,7 +9365,13 @@ radv_CmdExecuteGeneratedCommandsNV(VkCommandBuffer commandBuffer, VkBool32 isPre
|
|||
|
||||
cmd_buffer->push_constant_stages |= ~0;
|
||||
|
||||
cmd_buffer->state.last_index_type = -1;
|
||||
if (!layout->indexed && cmd_buffer->device->physical_device->rad_info.gfx_level >= GFX7) {
|
||||
/* On GFX7 and later, non-indexed draws overwrite VGT_INDEX_TYPE, so the state must be
|
||||
* re-emitted before the next indexed draw.
|
||||
*/
|
||||
cmd_buffer->state.last_index_type = -1;
|
||||
}
|
||||
|
||||
cmd_buffer->state.last_num_instances = -1;
|
||||
cmd_buffer->state.last_vertex_offset_valid = false;
|
||||
cmd_buffer->state.last_first_instance = -1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue