Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9800 from Techjar/vulkan-subgroup-fix
Vulkan: Fix subgroup reduction
  • Loading branch information
stenzek committed Jun 8, 2021
2 parents ec8257e + 58238e7 commit 1b39779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
Expand Up @@ -103,7 +103,7 @@ static const char SUBGROUP_HELPER_HEADER[] = R"(
#define SUPPORTS_SUBGROUP_REDUCTION 1
#define CAN_USE_SUBGROUP_REDUCTION true
#define IS_HELPER_INVOCATION gl_HelperInvocation
#define IS_FIRST_ACTIVE_INVOCATION (gl_SubgroupInvocationID == subgroupBallotFindLSB(subgroupBallot(true)))
#define IS_FIRST_ACTIVE_INVOCATION (gl_SubgroupInvocationID == subgroupBallotFindLSB(subgroupBallot(!gl_HelperInvocation)))
#define SUBGROUP_MIN(value) value = subgroupMin(value)
#define SUBGROUP_MAX(value) value = subgroupMax(value)
)";
Expand Down

0 comments on commit 1b39779

Please sign in to comment.