This is what the GLSL ES 310 spec tells us to do, but apparently the
"gather mode" flag doesn't imply it in the HW. Fixes
dEQP-GLES31.functional.texture.gather.basic.2d.rgba8.filter_mode.min_nearest_mipmap_linear_mag_linear
.gather_component = instr->component,
.coefficient_mode = instr->op == nir_texop_txd,
+
+ .disable_autolod = instr->op == nir_texop_tg4
};
int non_array_components = instr->coord_components - instr->is_array;
ntq_get_src(c, instr->src[i].src, 0),
&tmu_writes);
- if (instr->op != nir_texop_txf &&
- instr->op != nir_texop_tg4) {
+ if (instr->op != nir_texop_txf)
p2_unpacked.disable_autolod = true;
- }
break;
case nir_tex_src_comparator: