Merge pull request #1899 from KhronosGroup/SPIR-V_1.5
Branch to support SPIR-V 1.5 changes
This commit is contained in:
commit
be467db7bd
8 changed files with 92 additions and 34 deletions
|
|
@ -2155,9 +2155,11 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
|
|||
break;
|
||||
|
||||
case EOpSubgroupBroadcast:
|
||||
// <id> must be an integral constant expression.
|
||||
if ((*argp)[1]->getAsConstantUnion() == nullptr)
|
||||
error(loc, "argument must be compile-time constant", "id", "");
|
||||
if (spvVersion.spv < EShTargetSpv_1_5) {
|
||||
// <id> must be an integral constant expression.
|
||||
if ((*argp)[1]->getAsConstantUnion() == nullptr)
|
||||
error(loc, "argument must be compile-time constant", "id", "");
|
||||
}
|
||||
break;
|
||||
|
||||
case EOpBarrier:
|
||||
|
|
|
|||
|
|
@ -311,6 +311,12 @@ public:
|
|||
case EShTargetSpv_1_3:
|
||||
processes.addProcess("target-env spirv1.3");
|
||||
break;
|
||||
case EShTargetSpv_1_4:
|
||||
processes.addProcess("target-env spirv1.4");
|
||||
break;
|
||||
case EShTargetSpv_1_5:
|
||||
processes.addProcess("target-env spirv1.5");
|
||||
break;
|
||||
default:
|
||||
processes.addProcess("target-env spirvUnknown");
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ typedef enum {
|
|||
EShTargetSpv_1_2 = (1 << 16) | (2 << 8), // SPIR-V 1.2
|
||||
EShTargetSpv_1_3 = (1 << 16) | (3 << 8), // SPIR-V 1.3
|
||||
EShTargetSpv_1_4 = (1 << 16) | (4 << 8), // SPIR-V 1.4
|
||||
EShTargetSpv_1_5 = (1 << 16) | (5 << 8), // SPIR-V 1.5
|
||||
} EShTargetLanguageVersion;
|
||||
|
||||
struct TInputLanguage {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue