From e9fa6c0bc691707aa18279b5d53ea8e331b1a611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Sun, 15 Oct 2023 09:15:09 +0200 Subject: [PATCH] broadcom/compiler: set properly lod query Acked-by: Emma Anholt Reviewed-by: Iago Toral Quiroga Part-of: --- 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.