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>
(cherry picked from commit 694001eef7)
This commit is contained in:
Karol Herbst 2023-10-24 21:28:02 +02:00 committed by Eric Engestrom
parent 336e6df3ef
commit bcfdd7476f
2 changed files with 2 additions and 2 deletions

View file

@ -754,7 +754,7 @@
"description": "rusticl/device: restrict param_max_size further",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

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
}