From: Marek Olšák Date: Thu, 4 Jul 2019 02:27:12 +0000 (-0400) Subject: radeonsi: simplify primitive binning enablement X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e56a2aaa86891873866966f9c4bd016ce907f77;p=mesa.git radeonsi: simplify primitive binning enablement Acked-by: Pierre-Eric Pelloux-Prayer Acked-by: Dave Airlie --- diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 07b483a7668..669013ec3fd 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -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)) {