mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
Revert "radeonsi: don't emit partial flushes at the end of IBs (v2)"
This reverts commit c9040dc9e7.
People have reported it causes corruption on VI, and I see GPU hangs
on GFX9.
This commit is contained in:
parent
7f7487f262
commit
c2f82fc1d3
1 changed files with 5 additions and 9 deletions
|
|
@ -129,17 +129,13 @@ void si_context_gfx_flush(void *context, unsigned flags,
|
|||
|
||||
r600_preflush_suspend_features(&ctx->b);
|
||||
|
||||
ctx->b.flags |= SI_CONTEXT_CS_PARTIAL_FLUSH |
|
||||
SI_CONTEXT_PS_PARTIAL_FLUSH;
|
||||
|
||||
/* DRM 3.1.0 doesn't flush TC for VI correctly. */
|
||||
if (ctx->b.chip_class == VI && ctx->b.screen->info.drm_minor <= 1) {
|
||||
ctx->b.flags |= SI_CONTEXT_PS_PARTIAL_FLUSH |
|
||||
SI_CONTEXT_CS_PARTIAL_FLUSH |
|
||||
SI_CONTEXT_INV_GLOBAL_L2 |
|
||||
if (ctx->b.chip_class == VI && ctx->b.screen->info.drm_minor <= 1)
|
||||
ctx->b.flags |= SI_CONTEXT_INV_GLOBAL_L2 |
|
||||
SI_CONTEXT_INV_VMEM_L1;
|
||||
} else if (ctx->b.chip_class == SI) {
|
||||
/* The kernel doesn't wait for idle before doing SURFACE_SYNC. */
|
||||
ctx->b.flags |= SI_CONTEXT_PS_PARTIAL_FLUSH |
|
||||
SI_CONTEXT_CS_PARTIAL_FLUSH;
|
||||
}
|
||||
|
||||
si_emit_cache_flush(ctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue