pan/bi: Only update LOD mode on TEX operations
If we don't add this check we clobber fetch mode when a 0 LOD is specified on a txf instruction. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7653>
This commit is contained in:
parent
864f4e2b15
commit
8040b797a8
|
@ -2006,7 +2006,9 @@ emit_texc(bi_context *ctx, nir_tex_instr *instr)
|
|||
break;
|
||||
|
||||
case nir_tex_src_lod:
|
||||
if (nir_src_is_const(instr->src[i].src) && nir_src_as_uint(instr->src[i].src) == 0) {
|
||||
if (desc.op == BIFROST_TEX_OP_TEX &&
|
||||
nir_src_is_const(instr->src[i].src) &&
|
||||
nir_src_as_uint(instr->src[i].src) == 0) {
|
||||
desc.lod_or_fetch = BIFROST_LOD_MODE_ZERO;
|
||||
} else if (desc.op == BIFROST_TEX_OP_TEX) {
|
||||
assert(base == nir_type_float);
|
||||
|
|
Loading…
Reference in New Issue