mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
radeonsi/gfx10: fix corruption for chips with harvested TCCs
Cc: 19.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
(cherry picked from commit 235ebe9163)
This commit is contained in:
parent
33eecbcc9b
commit
0b97377f58
1 changed files with 6 additions and 2 deletions
|
|
@ -1700,7 +1700,9 @@ si_make_CB_shader_coherent(struct si_context *sctx, unsigned num_samples,
|
|||
SI_CONTEXT_INV_VCACHE;
|
||||
|
||||
if (sctx->chip_class >= GFX10) {
|
||||
if (shaders_read_metadata)
|
||||
if (sctx->screen->info.tcc_harvested)
|
||||
sctx->flags |= SI_CONTEXT_INV_L2;
|
||||
else if (shaders_read_metadata)
|
||||
sctx->flags |= SI_CONTEXT_INV_L2_METADATA;
|
||||
} else if (sctx->chip_class == GFX9) {
|
||||
/* Single-sample color is coherent with shaders on GFX9, but
|
||||
|
|
@ -1726,7 +1728,9 @@ si_make_DB_shader_coherent(struct si_context *sctx, unsigned num_samples,
|
|||
SI_CONTEXT_INV_VCACHE;
|
||||
|
||||
if (sctx->chip_class >= GFX10) {
|
||||
if (shaders_read_metadata)
|
||||
if (sctx->screen->info.tcc_harvested)
|
||||
sctx->flags |= SI_CONTEXT_INV_L2;
|
||||
else if (shaders_read_metadata)
|
||||
sctx->flags |= SI_CONTEXT_INV_L2_METADATA;
|
||||
} else if (sctx->chip_class == GFX9) {
|
||||
/* Single-sample depth (not stencil) is coherent with shaders
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue