Commit 20fb15bf authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen

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: 341529db 'radv: use optimal packet order for draws'
Reviewed-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
parent fb554779
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment