Module: Mesa Branch: main Commit: 694001eef70e220c709523cd71aad4b7b7c6c8db URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=694001eef70e220c709523cd71aad4b7b7c6c8db
Author: Karol Herbst <kher...@redhat.com> Date: Tue Oct 24 21:28:02 2023 +0200 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 <kher...@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25837> --- 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 }