Module: Mesa
Branch: main
Commit: 8924fe9fc317903038533882253207688dae9747
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8924fe9fc317903038533882253207688dae9747

Author: Jesse Natalie <[email protected]>
Date:   Wed Jan 11 10:43:44 2023 -0800

microsoft/compiler: Delete incorrect implementation for load_layer_id

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

---

 src/microsoft/compiler/nir_to_dxil.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/microsoft/compiler/nir_to_dxil.c 
b/src/microsoft/compiler/nir_to_dxil.c
index 1f08f2b35b2..8eacc729135 100644
--- a/src/microsoft/compiler/nir_to_dxil.c
+++ b/src/microsoft/compiler/nir_to_dxil.c
@@ -4377,15 +4377,6 @@ emit_load_sample_pos_from_id(struct ntd_context *ctx, 
nir_intrinsic_instr *intr)
    return true;
 }
 
-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)
 {
@@ -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);

Reply via email to