zink: delete some now-broken ntv dref sampling code
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 15 Feb 2023 12:18:43 +0000 (07:18 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Feb 2023 04:30:04 +0000 (04:30 +0000)
depth splatting should be handled now by the match_tex_dests() pass

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21336>

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

index 365e1ca..577ccf2 100644 (file)
@@ -3887,13 +3887,6 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
 
    if (tex->is_sparse)
       result = extract_sparse_load(ctx, result, actual_dest_type, &tex->dest.ssa);
-   if (dref && nir_dest_num_components(tex->dest) > 1 && tex->op != nir_texop_tg4) {
-      SpvId components[4] = { result, result, result, result };
-      result = spirv_builder_emit_composite_construct(&ctx->builder,
-                                                      dest_type,
-                                                      components,
-                                                      4);
-   }
 
    if (nir_dest_bit_size(tex->dest) != 32) {
       /* convert FP32 to FP16 */