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:
Karol Herbst
2023-10-24 21:28:02 +02:00
committed by Marge Bot
parent 9b6ac56d72
commit 694001eef7
+1 -1
View File
@@ -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
}