zink: always set actual_dest_type for ntv tex instruction emission
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Jan 2022 17:26:45 +0000 (12:26 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jan 2022 15:51:30 +0000 (15:51 +0000)
no-op for now

Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14381>

src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index f98a667..a9cca8e 100644 (file)
@@ -3102,6 +3102,7 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
       if (tex->op == nir_texop_tg4) {
          if (const_offset)
             spirv_builder_emit_cap(&ctx->builder, SpvCapabilityImageGatherExtended);
+         actual_dest_type = dest_type;
          result = spirv_builder_emit_image_gather(&ctx->builder, dest_type,
                                                  load, coord, emit_uint_const(ctx, 32, tex->component),
                                                  lod, sample, const_offset, offset, dref, tex->is_sparse);