summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-09-12 19:00:23 -0400
committerMarek Olšák <[email protected]>2019-09-18 14:39:06 -0400
commitdeab3a23f6c35720248144637058697f46b2fa34 (patch)
treecec7999becab9d9902aa46f1ba86cb2877d99ee7 /src/gallium/drivers/radeonsi
parent2c62b461e99c0d1d40d5aa16acfdd3df2fb790cd (diff)
ac: move num_sdp_interfaces into radeon_info
Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_binning.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_binning.c b/src/gallium/drivers/radeonsi/si_state_binning.c
index 3963823d461..aae18f03636 100644
--- a/src/gallium/drivers/radeonsi/si_state_binning.c
+++ b/src/gallium/drivers/radeonsi/si_state_binning.c
@@ -313,20 +313,6 @@ static void gfx10_get_bin_sizes(struct si_context *sctx,
struct uvec2 *color_bin_size,
struct uvec2 *depth_bin_size)
{
- unsigned num_sdp_interfaces = 0;
-
- switch (sctx->family) {
- case CHIP_NAVI10:
- case CHIP_NAVI12:
- num_sdp_interfaces = 16;
- break;
- case CHIP_NAVI14:
- num_sdp_interfaces = 8;
- break;
- default:
- assert(0);
- }
-
const unsigned ZsTagSize = 64;
const unsigned ZsNumTags = 312;
const unsigned CcTagSize = 1024;
@@ -335,7 +321,7 @@ static void gfx10_get_bin_sizes(struct si_context *sctx,
const unsigned FcReadTags = 44;
const unsigned num_rbs = sctx->screen->info.num_render_backends;
- const unsigned num_pipes = MAX2(num_rbs, num_sdp_interfaces);
+ const unsigned num_pipes = MAX2(num_rbs, sctx->screen->info.num_sdp_interfaces);
const unsigned depthBinSizeTagPart = ((ZsNumTags * num_rbs / num_pipes) * (ZsTagSize * num_pipes));
const unsigned colorBinSizeTagPart = ((CcReadTags * num_rbs / num_pipes) * (CcTagSize * num_pipes));