mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +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>
This commit is contained in:
parent
8cbe83445b
commit
235ebe9163
1 changed files with 6 additions and 2 deletions
|
|
@ -1684,7 +1684,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
|
||||
|
|
@ -1710,7 +1712,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