rusticl/device: limit MAX_PARAMETER_SIZE to 32k

There is no good reason of having it too big and radeonsi returns an
absurd high value through PIPE_SHADER_CAP_MAX_CONST_BUFFER0_SIZE.

This speeds up the CTS testing this device limit.

Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23378>
This commit is contained in:
Karol Herbst
2023-06-01 21:37:49 +02:00
committed by Marge Bot
parent 2d9a3bb093
commit 97c48edac0
+4 -1
View File
@@ -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 {