summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-02-27 23:49:19 +0100
committerMarek Olšák <[email protected]>2017-03-31 21:41:57 +0200
commit283c31afa168921e9b8531a9bdd20bc0adc6caf2 (patch)
tree4cf6576a837ed42c2e53c96d85f35203764c8574 /src
parent829bd7723558d2eca5e456f43a371c020e30caa5 (diff)
radeonsi: unify HS max_offchip_buffers workarounds
Vulkan doesn't set more than 508. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_shaders.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c
index 89de761e66e..d175b9c75e5 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -2407,13 +2407,13 @@ static void si_init_tess_factor_ring(struct si_context *sctx)
max_offchip_buffers = MIN2(max_offchip_buffers, 126);
break;
case CIK:
+ case VI:
case GFX9:
max_offchip_buffers = MIN2(max_offchip_buffers, 508);
break;
- case VI:
default:
- max_offchip_buffers = MIN2(max_offchip_buffers, 512);
- break;
+ assert(0);
+ return;
}
assert(!sctx->tf_ring);