aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-06-20 18:11:05 -0500
committerMarek Olšák <[email protected]>2018-06-21 14:42:14 -0400
commit587e712eda95c31d88ea9d20e59ad0ae59afef4f (patch)
treeb6da25cb4a7a908e5f3e615489e3d1dc35e0a38b
parent6764aae169e5d318782292bed4fd0a689cb5fd3a (diff)
radeonsi: disable DCC MSAA for 128bpp formats on Stoney
Cc: 18.1 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_texture.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c
index a4b287c9d6d..1e5fc064e5c 100644
--- a/src/gallium/drivers/radeonsi/si_texture.c
+++ b/src/gallium/drivers/radeonsi/si_texture.c
@@ -273,6 +273,11 @@ static int si_init_surface(struct si_screen *sscreen,
(ptex->nr_samples >= 2 && !sscreen->dcc_msaa_allowed)))
flags |= RADEON_SURF_DISABLE_DCC;
+ /* Stoney: 128bpp MSAA textures randomly fail piglit tests with DCC. */
+ if (sscreen->info.family == CHIP_STONEY &&
+ bpe == 16 && ptex->nr_samples >= 2)
+ flags |= RADEON_SURF_DISABLE_DCC;
+
/* VI: DCC clear for 4x and 8x MSAA array textures unimplemented. */
if (sscreen->info.chip_class == VI &&
num_color_samples >= 4 &&