mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 06:00:22 +01:00
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:
parent
336e6df3ef
commit
bcfdd7476f
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue