Implement V_READFIRSTLANE_B32 (#681)

* Implement V_READFIRSTLANE_B32

* refactor
This commit is contained in:
Grégoire Hage 2024-09-01 20:49:42 +02:00 committed by GitHub
parent e4d8857eb5
commit 1bd9317509
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View file

@ -23,7 +23,7 @@ Id EmitQuadShuffle(EmitContext& ctx, Id value, Id index) {
}
Id EmitReadFirstLane(EmitContext& ctx, Id value) {
UNREACHABLE();
return ctx.OpGroupNonUniformBroadcastFirst(ctx.U32[1], SubgroupScope(ctx), value);
}
Id EmitReadLane(EmitContext& ctx, Id value, u32 lane) {