mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
microsoft/clc: Use 128 instead of PIPE_MAX_SHADER_SAMPLER_VIEWS
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24440>
This commit is contained in:
parent
1181c2509d
commit
a36ad49e0e
1 changed files with 2 additions and 1 deletions
|
|
@ -733,7 +733,8 @@ clc_spirv_to_dxil(struct clc_libclc *lib,
|
|||
|
||||
NIR_PASS_V(nir, nir_scale_fdiv);
|
||||
|
||||
dxil_wrap_sampler_state int_sampler_states[PIPE_MAX_SHADER_SAMPLER_VIEWS] = { {{0}} };
|
||||
/* 128 is the minimum value for CL_DEVICE_MAX_READ_IMAGE_ARGS and used by CLOn12 */
|
||||
dxil_wrap_sampler_state int_sampler_states[128] = { {{0}} };
|
||||
unsigned sampler_id = 0;
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_variable_initializers, ~(nir_var_function_temp | nir_var_shader_temp));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue