radeonsi: disable DCC statistics gathering on everything but Stoney
authorMarek Olšák <marek.olsak@amd.com>
Mon, 18 Jun 2018 20:03:39 +0000 (16:03 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 29 Jun 2018 02:27:25 +0000 (22:27 -0400)
I think we don't need it on other chips.

src/gallium/drivers/radeonsi/si_clear.c

index 8a3398c..23c9962 100644 (file)
@@ -447,7 +447,7 @@ static void si_do_fast_color_clear(struct si_context *sctx,
                /* Fast clear is the most appropriate place to enable DCC for
                 * displayable surfaces.
                 */
-               if (!too_small) {
+               if (sctx->family == CHIP_STONEY && !too_small) {
                        vi_separate_dcc_try_enable(sctx, tex);
 
                        /* RB+ isn't supported with a CMASK clear only on Stoney,
@@ -455,8 +455,7 @@ static void si_do_fast_color_clear(struct si_context *sctx,
                         * clears, which is weighed when determining whether to
                         * enable separate DCC.
                         */
-                       if (tex->dcc_gather_statistics &&
-                           sctx->family == CHIP_STONEY)
+                       if (tex->dcc_gather_statistics) /* only for Stoney */
                                tex->num_slow_clears++;
                }