From 283c31afa168921e9b8531a9bdd20bc0adc6caf2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 27 Feb 2017 23:49:19 +0100 Subject: [PATCH] radeonsi: unify HS max_offchip_buffers workarounds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Vulkan doesn't set more than 508. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state_shaders.c | 6 +++--- 1 file 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 89de761..d175b9c 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); -- 2.7.4