mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 15:08:24 +02:00
zink: remove weird lod hack for texturing
this breaks texturing in non-fragment stages and is unnecessary
due to using nir_lower_tex
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11007>
(cherry picked from commit a9d3b00502)
This commit is contained in:
parent
134d32a218
commit
7ce1dcb5eb
2 changed files with 1 additions and 6 deletions
|
|
@ -517,7 +517,7 @@
|
|||
"description": "zink: remove weird lod hack for texturing",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2878,11 +2878,6 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
|
|||
}
|
||||
}
|
||||
|
||||
if (lod == 0 && ctx->stage != MESA_SHADER_FRAGMENT) {
|
||||
lod = emit_float_const(ctx, 32, 0.0f);
|
||||
assert(lod != 0);
|
||||
}
|
||||
|
||||
unsigned texture_index = tex->texture_index;
|
||||
if (!tex_offset) {
|
||||
/* convert constant index back to base + offset */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue