radeonsi: simplify primitive binning enablement
authorMarek Olšák <marek.olsak@amd.com>
Thu, 4 Jul 2019 02:27:12 +0000 (22:27 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jul 2019 21:24:16 +0000 (17:24 -0400)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 07b483a7668389fd4b149d5074cc84dbf37a14b8..669013ec3fd34aa60d6ad324a46da71c527a8aa7 100644 (file)
@@ -1127,11 +1127,11 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws,
                                           sscreen->info.chip_class >= GFX10;
 
        /* Only enable primitive binning on APUs by default. */
-       sscreen->dpbb_allowed = sscreen->info.family == CHIP_RAVEN ||
-                               sscreen->info.family == CHIP_RAVEN2;
+       sscreen->dpbb_allowed = sscreen->info.chip_class >= GFX9 &&
+                               !sscreen->info.has_dedicated_vram;
 
-       sscreen->dfsm_allowed = sscreen->info.family == CHIP_RAVEN ||
-                               sscreen->info.family == CHIP_RAVEN2;
+       sscreen->dfsm_allowed = sscreen->info.chip_class >= GFX9 &&
+                               !sscreen->info.has_dedicated_vram;
 
        /* Process DPBB enable flags. */
        if (sscreen->debug_flags & DBG(DPBB)) {