zink: allow multiple tex components for depth tg4

this returns a vec4, so don't break the return type by clamping 1 component

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17427>
This commit is contained in:
Mike Blumenkrantz
2022-07-05 13:05:43 -04:00
committed by Marge Bot
parent 02d9d1557b
commit 35a4b8989f
@@ -3587,7 +3587,7 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
return;
}
SpvId actual_dest_type;
if (dref)
if (dref && tex->op != nir_texop_tg4)
actual_dest_type =
spirv_builder_type_float(&ctx->builder,
nir_dest_bit_size(tex->dest));