From 694001eef70e220c709523cd71aad4b7b7c6c8db Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Tue, 24 Oct 2023 21:28:02 +0200 Subject: [PATCH] rusticl/device: restrict param_max_size further It's kinda pointless to have it too big, it also causes weird shaders to be generated and causes stack overflows in `nir_opt_gcm`. Nothing needs big values here anyway. Cc: mesa-stable Signed-off-by: Karol Herbst Part-of: --- src/gallium/frontends/rusticl/core/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/core/device.rs b/src/gallium/frontends/rusticl/core/device.rs index 8058f5cbb79..0a5e07ffb5a 100644 --- a/src/gallium/frontends/rusticl/core/device.rs +++ b/src/gallium/frontends/rusticl/core/device.rs @@ -856,7 +856,7 @@ impl Device { pub fn param_max_size(&self) -> usize { min( self.shader_param(pipe_shader_cap::PIPE_SHADER_CAP_MAX_CONST_BUFFER0_SIZE) as u32, - 32 * 1024, + 4 * 1024, ) as usize }