zink: clamp out min_lod operands for explicit lod ops
this is illegal (and nonsensical) cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16456>
This commit is contained in:
parent
88912b3111
commit
63dc39ac90
|
@ -3460,6 +3460,8 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
|
||||||
result = spirv_builder_emit_image_fetch(&ctx->builder, actual_dest_type,
|
result = spirv_builder_emit_image_fetch(&ctx->builder, actual_dest_type,
|
||||||
image, coord, lod, sample, const_offset, offset, tex->is_sparse);
|
image, coord, lod, sample, const_offset, offset, tex->is_sparse);
|
||||||
} else {
|
} else {
|
||||||
|
if (tex->op == nir_texop_txl)
|
||||||
|
min_lod = 0;
|
||||||
result = spirv_builder_emit_image_sample(&ctx->builder,
|
result = spirv_builder_emit_image_sample(&ctx->builder,
|
||||||
actual_dest_type, load,
|
actual_dest_type, load,
|
||||||
coord,
|
coord,
|
||||||
|
|
Loading…
Reference in New Issue