Module: Mesa Branch: main Commit: 5cfd6592765b3a6b69675494bd4f8c5309184ad2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5cfd6592765b3a6b69675494bd4f8c5309184ad2
Author: Marek Olšák <marek.ol...@amd.com> Date: Wed Dec 6 14:48:02 2023 -0500 ac/llvm: remove code for converting txd from 1D to 2D because NIR does it Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-pra...@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26547> --- src/amd/llvm/ac_nir_to_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c index 273194ee7ca..27cfe82b43a 100644 --- a/src/amd/llvm/ac_nir_to_llvm.c +++ b/src/amd/llvm/ac_nir_to_llvm.c @@ -4003,7 +4003,7 @@ static void visit_tex(struct ac_nir_context *ctx, nir_tex_instr *instr) num_deriv_channels = 2; break; case GLSL_SAMPLER_DIM_1D: - num_deriv_channels = ctx->ac.gfx_level == GFX9 ? 2 : 1; + num_deriv_channels = 1; break; }