Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VideoBackend/OGL: Prefer KHR_subgroup over NV_shader_thread.
While the NV extension is totally fine, the KHR extension should be able to support more hardware. For NVIDIA, the hardware either supports both or neither, it just needs a driver from the last two years. For AMD, the drivers from late 2022-12 seems to bring support for the KHR extension. For Intel, the KHR is also supported for some years.
- Loading branch information
Showing
8 changed files
with
65 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
** Copyright (c) 2013-2015 The Khronos Group Inc. | ||
** SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include "Common/GL/GLExtensions/gl_common.h" | ||
|
||
#define GL_SUBGROUP_SIZE_KHR 0x9532 | ||
#define GL_SUBGROUP_SUPPORTED_STAGES_KHR 0x9533 | ||
#define GL_SUBGROUP_SUPPORTED_FEATURES_KHR 0x9534 | ||
#define GL_SUBGROUP_QUAD_ALL_STAGES_KHR 0x9535 | ||
#define GL_SUBGROUP_FEATURE_BASIC_BIT_KHR 0x00000001 | ||
#define GL_SUBGROUP_FEATURE_VOTE_BIT_KHR 0x00000002 | ||
#define GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR 0x00000004 | ||
#define GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR 0x00000008 | ||
#define GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR 0x00000010 | ||
#define GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR 0x00000020 | ||
#define GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR 0x00000040 | ||
#define GL_SUBGROUP_FEATURE_QUAD_BIT_KHR 0x00000080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters