diff --git a/src/gallium/frontends/rusticl/core/device.rs b/src/gallium/frontends/rusticl/core/device.rs index e2742d1a5b6..7bee316d898 100644 --- a/src/gallium/frontends/rusticl/core/device.rs +++ b/src/gallium/frontends/rusticl/core/device.rs @@ -782,7 +782,10 @@ impl Device { } pub fn param_max_size(&self) -> usize { - self.shader_param(pipe_shader_cap::PIPE_SHADER_CAP_MAX_CONST_BUFFER0_SIZE) as usize + min( + self.shader_param(pipe_shader_cap::PIPE_SHADER_CAP_MAX_CONST_BUFFER0_SIZE), + 32 * 1024, + ) as usize } pub fn printf_buffer_size(&self) -> usize {