microsoft/compiler: Delete incorrect implementation for load_layer_id

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20650>
This commit is contained in:
Jesse Natalie 2023-01-11 10:43:44 -08:00 committed by Marge Bot
parent a6f932639a
commit 8924fe9fc3

View file

@ -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);