mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-03 19:48:17 +02:00
tu: Start/End occlusion query should force depth state recalculation
tu6_build_depth_plane_z_mode has a dependency on
occlusion_query_may_be_running.
Fixes: 8f5d433840 ("tu: Occlusion query counting should happen after FS that kills")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41856>
This commit is contained in:
parent
9f4358ee77
commit
930f7f4a1b
1 changed files with 2 additions and 0 deletions
|
|
@ -1090,6 +1090,7 @@ emit_begin_occlusion_query(struct tu_cmd_buffer *cmdbuf,
|
|||
*/
|
||||
struct tu_cs *cs = cmdbuf->state.pass ? &cmdbuf->draw_cs : &cmdbuf->cs;
|
||||
cmdbuf->state.occlusion_query_may_be_running = true;
|
||||
cmdbuf->state.dirty |= TU_CMD_DIRTY_LRZ;
|
||||
|
||||
uint64_t begin_iova = occlusion_query_iova(pool, query, begin);
|
||||
|
||||
|
|
@ -1588,6 +1589,7 @@ emit_end_occlusion_query(struct tu_cmd_buffer *cmdbuf,
|
|||
tu_cs_emit_qw(epilogue_cs, 0x1);
|
||||
|
||||
cmdbuf->state.occlusion_query_may_be_running = false;
|
||||
cmdbuf->state.dirty |= TU_CMD_DIRTY_LRZ;
|
||||
}
|
||||
|
||||
/* PRIMITIVE_CTRS is used for two distinct queries:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue