Skip to content

Commit b7a8e91

Browse files
Pekka Jääskeläinenpvelesko
authored andcommitted
Pretend the SPIR ver needed by shuffles is 1.2
In reality the SPIR-V shuffles and ballot operations require v1.3, but they seem to work with Intel's v1.2 implementation (likely due to the extensions). Until v1.3 support is added to the driver, let's just pretend these are v1.2 features to allow CHIPSPV warp-level functions to compile.
1 parent 0fec1b8 commit b7a8e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SPIRV/libSPIRV/SPIRVEntry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ class SPIRVCapability : public SPIRVEntryNoId<OpCapability> {
881881
case CapabilityGroupNonUniformShuffle:
882882
case CapabilityGroupNonUniformShuffleRelative:
883883
case CapabilityGroupNonUniformClustered:
884-
return static_cast<SPIRVWord>(VersionNumber::SPIRV_1_3);
884+
return static_cast<SPIRVWord>(VersionNumber::SPIRV_1_2);
885885

886886
case CapabilityNamedBarrier:
887887
case CapabilitySubgroupDispatch:

0 commit comments

Comments
 (0)