externals: Update sirit to fix debug assert ()

This commit is contained in:
squidbus 2024-12-14 06:12:41 -08:00 committed by GitHub
parent 85f950f5c0
commit 665aae453b
2 changed files with 2 additions and 2 deletions
externals
src/shader_recompiler/backend/spirv

2
externals/sirit vendored

@ -1 +1 @@
Subproject commit 5b5ff49a58f5be27af1058794c6ca907dabc05b3 Subproject commit 1e74f4ef8d2a0e3221a4de51977663f342b53c35

View file

@ -247,7 +247,7 @@ void EmitImageWrite(EmitContext& ctx, IR::Inst* inst, u32 handle, Id coords, Id
ImageOperands operands; ImageOperands operands;
if (ctx.profile.supports_image_load_store_lod) { if (ctx.profile.supports_image_load_store_lod) {
operands.Add(spv::ImageOperandsMask::Lod, lod); operands.Add(spv::ImageOperandsMask::Lod, lod);
} else if (lod.value != 0) { } else if (Sirit::ValidId(lod)) {
LOG_WARNING(Render, "Image write with LOD not supported by driver"); LOG_WARNING(Render, "Image write with LOD not supported by driver");
} }
ctx.OpImageWrite(image, coords, ctx.OpBitcast(color_type, color), operands.mask, ctx.OpImageWrite(image, coords, ctx.OpBitcast(color_type, color), operands.mask,