emit_spirv: Fix comparison type

This commit is contained in:
TheTurtle 2025-03-19 23:02:44 +02:00 committed by GitHub
parent 9298b074fc
commit 72cd815ea0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,7 +236,7 @@ Id EmitFindILsb64(EmitContext& ctx, Id value) {
const Id hi{ctx.OpCompositeExtract(ctx.U32[1], unpacked, 1U)}; const Id hi{ctx.OpCompositeExtract(ctx.U32[1], unpacked, 1U)};
const Id lo_lsb{ctx.OpFindILsb(ctx.U32[1], lo)}; const Id lo_lsb{ctx.OpFindILsb(ctx.U32[1], lo)};
const Id hi_lsb{ctx.OpFindILsb(ctx.U32[1], hi)}; const Id hi_lsb{ctx.OpFindILsb(ctx.U32[1], hi)};
const Id found_lo{ctx.OpINotEqual(ctx.U32[1], lo_lsb, ctx.ConstU32(u32(-1)))}; const Id found_lo{ctx.OpINotEqual(ctx.U1[1], lo_lsb, ctx.ConstU32(u32(-1)))};
return ctx.OpSelect(ctx.U32[1], found_lo, lo_lsb, hi_lsb); return ctx.OpSelect(ctx.U32[1], found_lo, lo_lsb, hi_lsb);
} }