diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-10-21 18:20:24 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-10-21 20:00:16 +0200 |
commit | 20fb15bfe4888c8a09e3ace668caeb9e805e350e (patch) | |
tree | d8181f2708fa6b13d1de19a9a504a8a731d55a30 /src | |
parent | fb55477990e417f3a5e80d91e9e0dbb7bf2f71a6 (diff) |
radv: Don't reset cmd_buffer->state.dirty.
Otherwise for non-indexed draws we set and immediately unset
RADV_CMD_DIRTY_INDEX_BUFFER. As all the set functions should
clear their own bit, this is unnecessary.
Fixes: 341529dbee5 'radv: use optimal packet order for draws'
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 887b789df87..7ba0ea00f7e 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -3151,8 +3151,6 @@ radv_emit_all_graphics_states(struct radv_cmd_buffer *cmd_buffer, radv_emit_draw_registers(cmd_buffer, info->indexed, info->instance_count > 1, info->indirect, info->indirect ? 0 : info->count); - - cmd_buffer->state.dirty = 0; } static void |