Remove unnecessary conversion for stencil_ref

This commit is contained in:
Hog 2026-06-10 17:01:20 +01:00 committed by GitHub
parent 4bc8e89936
commit 9600ed5038
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,7 +256,6 @@ void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, Id value, u32 elemen
return op_store(ctx.OpAccessChain(ctx.output_u32, ctx.sample_mask, ctx.u32_zero_value));
case IR::Attribute::StencilRef:
if (ctx.profile.supports_shader_stencil_export) {
value = ctx.OpConvertFToS(ctx.S32[1], value);
return op_store(ctx.stencil_ref);
}
return;