From b08db4603e74afbd77c9af13fb8a344bff09be63 Mon Sep 17 00:00:00 2001 From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:24:49 +0300 Subject: [PATCH] spirv: Remove subgroup id --- src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp | 2 +- src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | 1 - src/shader_recompiler/backend/spirv/spirv_emit_context.h | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp index bd4ac066..38afd90f 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp @@ -11,7 +11,7 @@ Id SubgroupScope(EmitContext& ctx) { } Id EmitWarpId(EmitContext& ctx) { - return ctx.OpLoad(ctx.U32[1], ctx.subgroup_id); + UNREACHABLE(); } Id EmitLaneId(EmitContext& ctx) { diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp index f7b30052..8ca8b7a3 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp @@ -225,7 +225,6 @@ void EmitContext::DefineInputs(const Info& info) { break; } case Stage::Fragment: - subgroup_id = DefineVariable(U32[1], spv::BuiltIn::SubgroupId, spv::StorageClass::Input); subgroup_local_invocation_id = DefineVariable( U32[1], spv::BuiltIn::SubgroupLocalInvocationId, spv::StorageClass::Input); Decorate(subgroup_local_invocation_id, spv::Decoration::Flat); diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.h b/src/shader_recompiler/backend/spirv/spirv_emit_context.h index 34c13d3f..2aa1bf78 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.h +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.h @@ -180,7 +180,6 @@ public: Id workgroup_id{}; Id local_invocation_id{}; - Id subgroup_id{}; Id subgroup_local_invocation_id{}; Id image_u32{};