Module: Mesa Branch: main Commit: 1181c2509da565cf32bb59f4a969877dc5fc55bd URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1181c2509da565cf32bb59f4a969877dc5fc55bd
Author: Yonggang Luo <luoyongg...@gmail.com> Date: Thu Aug 3 11:43:40 2023 +0800 microsoft/clc: Using sampler_id instead PIPE_MAX_SHADER_SAMPLER_VIEWS for dxil_lower_sample_to_txf_for_integer_tex Because sampler_id is the real number of samples. Signed-off-by: Yonggang Luo <luoyongg...@gmail.com> Acked-by: Jesse Natalie <jenat...@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24440> --- src/microsoft/clc/clc_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/clc/clc_compiler.c b/src/microsoft/clc/clc_compiler.c index bc21f26dfb4..3098c01d51b 100644 --- a/src/microsoft/clc/clc_compiler.c +++ b/src/microsoft/clc/clc_compiler.c @@ -853,7 +853,7 @@ clc_spirv_to_dxil(struct clc_libclc *lib, NIR_PASS_V(nir, clc_lower_nonnormalized_samplers, int_sampler_states); NIR_PASS_V(nir, nir_lower_samplers); NIR_PASS_V(nir, dxil_lower_sample_to_txf_for_integer_tex, - PIPE_MAX_SHADER_SAMPLER_VIEWS, int_sampler_states, NULL, 14.0f); + sampler_id, int_sampler_states, NULL, 14.0f); NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_mem_shared | nir_var_function_temp, NULL);