From 587e712eda95c31d88ea9d20e59ad0ae59afef4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 20 Jun 2018 18:11:05 -0500 Subject: [PATCH] radeonsi: disable DCC MSAA for 128bpp formats on Stoney Cc: 18.1 Reviewed-by: Bas Nieuwenhuizen --- src/gallium/drivers/radeonsi/si_texture.c | 5 +++++ 1 file changed, 5 insertions(+) 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 && -- 2.30.2