mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
rusticl/device: _MAX_CONST_BUFFER0_SIZE is unsigned
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24868>
This commit is contained in:
parent
54b37078eb
commit
07272f6c35
1 changed files with 4 additions and 3 deletions
|
|
@ -304,10 +304,11 @@ impl Device {
|
|||
|
||||
// CL_DEVICE_MAX_PARAMETER_SIZE
|
||||
// For this minimum value, only a maximum of 128 arguments can be passed to a kernel
|
||||
if screen.shader_param(
|
||||
if (screen.shader_param(
|
||||
pipe_shader_type::PIPE_SHADER_COMPUTE,
|
||||
pipe_shader_cap::PIPE_SHADER_CAP_MAX_CONST_BUFFER0_SIZE,
|
||||
) < 128
|
||||
) as u32)
|
||||
< 128
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -840,7 +841,7 @@ impl Device {
|
|||
|
||||
pub fn param_max_size(&self) -> usize {
|
||||
min(
|
||||
self.shader_param(pipe_shader_cap::PIPE_SHADER_CAP_MAX_CONST_BUFFER0_SIZE),
|
||||
self.shader_param(pipe_shader_cap::PIPE_SHADER_CAP_MAX_CONST_BUFFER0_SIZE) as u32,
|
||||
32 * 1024,
|
||||
) as usize
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue