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:
Mike Blumenkrantz 2021-05-26 10:11:01 -04:00 committed by Marge Bot
parent a545b6eda0
commit a9d3b00502

View file

@ -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 */