radeonsi: disable DCC MSAA for 128bpp formats on Stoney
authorMarek Olšák <marek.olsak@amd.com>
Wed, 20 Jun 2018 23:11:05 +0000 (18:11 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 21 Jun 2018 18:42:14 +0000 (14:42 -0400)
Cc: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_texture.c

index a4b287c9d6d04e1b90625fedd5637645c13d78fb..1e5fc064e5c967376add5be870d8b46d5b0c5cb5 100644 (file)
@@ -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 &&