| ... | @@ -6145,7 +6145,7 @@ fn airWorkGroupSize(cg: *CodeGen, inst: Air.Inst.Index) !?Id { | ... | @@ -6145,7 +6145,7 @@ fn airWorkGroupSize(cg: *CodeGen, inst: Air.Inst.Index) !?Id { |
| 6145 | if (cg.liveness.isUnused(inst)) return null; | 6145 | if (cg.liveness.isUnused(inst)) return null; |
| 6146 | const pl_op = cg.air.instructions.items(.data)[@intFromEnum(inst)].pl_op; | 6146 | const pl_op = cg.air.instructions.items(.data)[@intFromEnum(inst)].pl_op; |
| 6147 | const dimension = pl_op.payload; | 6147 | const dimension = pl_op.payload; |
| 6148 | return try cg.builtin3D(.u32, .workgroup_id, dimension, 0); | 6148 | return try cg.builtin3D(.u32, .workgroup_size, dimension, 0); |
| 6149 | } | 6149 | } |
| 6150 | | 6150 | |
| 6151 | fn airWorkGroupId(cg: *CodeGen, inst: Air.Inst.Index) !?Id { | 6151 | fn airWorkGroupId(cg: *CodeGen, inst: Air.Inst.Index) !?Id { |