Skip to content

Commit

Permalink
Pretend the SPIR ver needed by shuffles is 1.2
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pjaaskel committed May 31, 2023
1 parent 17cfdbd commit 0d66986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SPIRV/libSPIRV/SPIRVEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ class SPIRVCapability : public SPIRVEntryNoId<OpCapability> {
case CapabilityGroupNonUniformShuffle:
case CapabilityGroupNonUniformShuffleRelative:
case CapabilityGroupNonUniformClustered:
return static_cast<SPIRVWord>(VersionNumber::SPIRV_1_3);
return static_cast<SPIRVWord>(VersionNumber::SPIRV_1_2);

case CapabilityNamedBarrier:
case CapabilitySubgroupDispatch:
Expand Down

0 comments on commit 0d66986

Please sign in to comment.