microsoft/compiler: Delete incorrect implementation for load_layer_id
authorJesse Natalie <jenatali@microsoft.com>
Wed, 11 Jan 2023 18:43:44 +0000 (10:43 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 19 Jan 2023 21:14:50 +0000 (21:14 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20650>

src/microsoft/compiler/nir_to_dxil.c

index 1f08f2b..8eacc72 100644 (file)
@@ -4378,15 +4378,6 @@ emit_load_sample_pos_from_id(struct ntd_context *ctx, nir_intrinsic_instr *intr)
 }
 
 static bool
-emit_load_layer_id(struct ntd_context *ctx, nir_intrinsic_instr *intr)
-{
-   const struct dxil_value *layer_id = dxil_module_get_int32_const(&ctx->mod, 0);
-   /* TODO: Properly implement this once multi-view is supported */
-   store_dest_value(ctx, &intr->dest, 0, layer_id);
-   return true;
-}
-
-static bool
 emit_load_sample_id(struct ntd_context *ctx, nir_intrinsic_instr *intr)
 {
    assert(ctx->mod.info.has_per_sample_input ||
@@ -4583,8 +4574,6 @@ emit_intrinsic(struct ntd_context *ctx, nir_intrinsic_instr *intr)
       return emit_vulkan_resource_index(ctx, intr);
    case nir_intrinsic_load_vulkan_descriptor:
       return emit_load_vulkan_descriptor(ctx, intr);
-   case nir_intrinsic_load_layer_id:
-      return emit_load_layer_id(ctx, intr);
 
    case nir_intrinsic_load_sample_pos_from_id:
       return emit_load_sample_pos_from_id(ctx, intr);