mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
radv: Clear query dirty flags when flushing them.
This is just to make their code consistent with other similar functions. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20659>
This commit is contained in:
parent
59c2711800
commit
b78cf192f0
1 changed files with 6 additions and 6 deletions
|
|
@ -3749,6 +3749,8 @@ radv_flush_occlusion_query_state(struct radv_cmd_buffer *cmd_buffer)
|
|||
|
||||
cmd_buffer->state.last_db_count_control = db_count_control;
|
||||
}
|
||||
|
||||
cmd_buffer->state.dirty &= ~RADV_CMD_DIRTY_OCCLUSION_QUERY;
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
|
@ -5274,6 +5276,8 @@ radv_flush_ngg_query_state(struct radv_cmd_buffer *cmd_buffer)
|
|||
enum radv_ngg_query_state ngg_query_state = radv_ngg_query_none;
|
||||
uint32_t base_reg;
|
||||
|
||||
cmd_buffer->state.dirty &= ~RADV_CMD_DIRTY_NGG_QUERY;
|
||||
|
||||
if (loc->sgpr_idx == -1)
|
||||
return;
|
||||
|
||||
|
|
@ -9088,15 +9092,11 @@ radv_emit_all_graphics_states(struct radv_cmd_buffer *cmd_buffer, const struct r
|
|||
if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_RBPLUS)
|
||||
radv_emit_rbplus_state(cmd_buffer);
|
||||
|
||||
if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_NGG_QUERY) {
|
||||
cmd_buffer->state.dirty &= ~RADV_CMD_DIRTY_NGG_QUERY;
|
||||
if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_NGG_QUERY)
|
||||
radv_flush_ngg_query_state(cmd_buffer);
|
||||
}
|
||||
|
||||
if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_OCCLUSION_QUERY) {
|
||||
if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_OCCLUSION_QUERY)
|
||||
radv_flush_occlusion_query_state(cmd_buffer);
|
||||
cmd_buffer->state.dirty &= ~RADV_CMD_DIRTY_OCCLUSION_QUERY;
|
||||
}
|
||||
|
||||
if ((cmd_buffer->state.dirty &
|
||||
(RADV_CMD_DIRTY_PIPELINE | RADV_CMD_DIRTY_DYNAMIC_CULL_MODE |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue