mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
radeonsi: Flush L2 for render condition when CP can't use L2
If CP can't use L2 then it also can't read the render condition through L2, so we need a flush, just like on GFX6-8. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37121>
This commit is contained in:
parent
78efa4157a
commit
637f618ac5
1 changed files with 1 additions and 1 deletions
|
|
@ -1696,7 +1696,7 @@ static void si_render_condition(struct pipe_context *ctx, struct pipe_query *que
|
|||
|
||||
/* Settings this in the render cond atom is too late,
|
||||
* so set it here. */
|
||||
if (sctx->gfx_level <= GFX8) {
|
||||
if (sctx->gfx_level <= GFX8 || sctx->screen->info.cp_sdma_ge_use_system_memory_scope) {
|
||||
sctx->barrier_flags |= SI_BARRIER_WB_L2 | SI_BARRIER_PFP_SYNC_ME;
|
||||
si_mark_atom_dirty(sctx, &sctx->atoms.s.barrier);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue