broadcom/compiler: set properly lod query
Acked-by: Emma Anholt <emma@anholt.net> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25851>
This commit is contained in:
parent
85f26828fe
commit
e9fa6c0bc6
1 changed files with 2 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue