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 <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25837>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user