mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +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>
This commit is contained in:
parent
a545b6eda0
commit
a9d3b00502
1 changed files with 0 additions and 5 deletions
|
|
@ -2954,11 +2954,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