Module: Mesa Branch: main Commit: e9fa6c0bc691707aa18279b5d53ea8e331b1a611 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e9fa6c0bc691707aa18279b5d53ea8e331b1a611
Author: Alejandro PiƱeiro <apinhe...@igalia.com> Date: Sun Oct 15 09:15:09 2023 +0200 broadcom/compiler: set properly lod query Acked-by: Emma Anholt <e...@anholt.net> Reviewed-by: Iago Toral Quiroga <ito...@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25851> --- src/broadcom/compiler/v3d_tex.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/broadcom/compiler/v3d_tex.c b/src/broadcom/compiler/v3d_tex.c index 7e0bc1aa0e5..643c73c4e58 100644 --- a/src/broadcom/compiler/v3d_tex.c +++ b/src/broadcom/compiler/v3d_tex.c @@ -278,7 +278,8 @@ v3d_vir_emit_tex(struct v3d_compile *c, nir_tex_instr *instr) .gather_mode = instr->op == nir_texop_tg4, .gather_component = instr->component, .coefficient_mode = instr->op == nir_texop_txd, - .disable_autolod = instr->op == nir_texop_tg4 + .disable_autolod = instr->op == nir_texop_tg4, + .lod_query = instr->op == nir_texop_lod, }; const unsigned tmu_writes = get_required_tex_tmu_writes(c, instr); @@ -311,13 +312,6 @@ v3d_vir_emit_tex(struct v3d_compile *c, nir_tex_instr *instr) (uint8_t *)&p2_packed, &p2_unpacked); - /* We manually set the LOD Query bit (see - * V3D42_TMU_CONFIG_PARAMETER_2) as right now is the only V42 specific - * feature over V41 we are using - */ - if (instr->op == nir_texop_lod) - p2_packed |= 1UL << 24; - /* Load texture_idx number into the high bits of the texture address field, * which will be be used by the driver to decide which texture to put * in the actual address field.