diff options
| author | JMC47 <JMC4789@gmail.com> | 2023-02-10 04:47:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-10 04:47:20 -0500 |
| commit | 258151fe5aa9b1c28eb9bb9567d345c59b54e4a0 (patch) | |
| tree | 5365822144593d45342fb89b6fbdde9165457c00 /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | dad7a32a35d0d28946c16e740692d014a858d2ea (diff) | |
| parent | 4b2aa948e662aa037ad39f5ee81a64256a4d61aa (diff) | |
Merge pull request #11523 from degasus/OGL_KHR_subgroup
VideoBackend/OGL: Prefer KHR_shader_subgroup over NV_shader_thread.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index df6f5dfab8..4dcd681185 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -457,15 +457,12 @@ void UpdateBoundingBox(float2 rawpos) {{ int2 pos_br = pos | 1; // round up to odd #ifdef SUPPORTS_SUBGROUP_REDUCTION - if (CAN_USE_SUBGROUP_REDUCTION) {{ - int2 min_pos = IS_HELPER_INVOCATION ? int2(2147483647, 2147483647) : pos_tl; - int2 max_pos = IS_HELPER_INVOCATION ? int2(-2147483648, -2147483648) : pos_br; - SUBGROUP_MIN(min_pos); - SUBGROUP_MAX(max_pos); + if (!IS_HELPER_INVOCATION) + {{ + SUBGROUP_MIN(pos_tl); + SUBGROUP_MAX(pos_br); if (IS_FIRST_ACTIVE_INVOCATION) - UpdateBoundingBoxBuffer(min_pos, max_pos); - }} else {{ - UpdateBoundingBoxBuffer(pos_tl, pos_br); + UpdateBoundingBoxBuffer(pos_tl, pos_br); }} #else UpdateBoundingBoxBuffer(pos_tl, pos_br); |
