mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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>
(cherry picked from commit 63dc39ac90)
This commit is contained in:
parent
2649b2c631
commit
41967c9107
2 changed files with 3 additions and 1 deletions
|
|
@ -1120,7 +1120,7 @@
|
|||
"description": "zink: clamp out min_lod operands for explicit lod ops",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3442,6 +3442,8 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
|
|||
result = spirv_builder_emit_image_fetch(&ctx->builder, actual_dest_type,
|
||||
image, coord, lod, sample, const_offset, offset, tex->is_sparse);
|
||||
} else {
|
||||
if (tex->op == nir_texop_txl)
|
||||
min_lod = 0;
|
||||
result = spirv_builder_emit_image_sample(&ctx->builder,
|
||||
actual_dest_type, load,
|
||||
coord,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue