From 2c08aa3674d77ffb0842d54aacd3108697923ca8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 8 May 2026 23:56:19 +0900 Subject: [PATCH] internal/rosa/glslang: disable broken arm64 tests These just fail on arm64, so disable them. Signed-off-by: Ophestra --- internal/rosa/glslang.go | 55 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/internal/rosa/glslang.go b/internal/rosa/glslang.go index 702cebc0..5ed41922 100644 --- a/internal/rosa/glslang.go +++ b/internal/rosa/glslang.go @@ -132,6 +132,57 @@ func (t Toolchain) newSPIRVLLVMTranslator() (pkg.Artifact, string) { version = "22.1.2" checksum = "JZAaV5ewYcm-35YA_U2BM2IcsQouZtX1BLZR0zh2vSlfEXMsT5OCtY4Gh5RJkcGy" ) + skipChecks := []string{ + // error: line 13: OpTypeCooperativeMatrixKHR Scope is limited to Workgroup and Subgroup + "cooperative_matrix_constant_null.spvasm", + } + + switch arch { + case "arm64": + skipChecks = append(skipChecks, + // LLVM ERROR: unsupported calling convention + "DebugInfo/COFF/no-cus.ll", + "DebugInfo/Generic/2009-11-05-DeadGlobalVariable.ll", + "DebugInfo/Generic/2009-11-10-CurrentFn.ll", + "DebugInfo/Generic/2010-01-05-DbgScope.ll", + "DebugInfo/Generic/2010-03-12-llc-crash.ll", + "DebugInfo/Generic/2010-03-24-MemberFn.ll", + "DebugInfo/Generic/2010-04-19-FramePtr.ll", + "DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll", + "DebugInfo/Generic/2010-10-01-crash.ll", + "DebugInfo/Generic/PR20038.ll", + "DebugInfo/Generic/constant-pointers.ll", + "DebugInfo/Generic/dead-argument-order.ll", + "DebugInfo/Generic/debug-info-eis-option.ll", + "DebugInfo/Generic/def-line.ll", + "DebugInfo/Generic/discriminator.ll", + "DebugInfo/Generic/dwarf-public-names.ll", + "DebugInfo/Generic/enum.ll", + "DebugInfo/Generic/func-using-decl.ll", + "DebugInfo/Generic/global.ll", + "DebugInfo/Generic/imported-name-inlined.ll", + "DebugInfo/Generic/incorrect-variable-debugloc1.ll", + "DebugInfo/Generic/inline-scopes.ll", + "DebugInfo/Generic/inlined-arguments.ll", + "DebugInfo/Generic/inlined-vars.ll", + "DebugInfo/Generic/linear-dbg-value.ll", + "DebugInfo/Generic/linkage-name-abstract.ll", + "DebugInfo/Generic/member-order.ll", + "DebugInfo/Generic/missing-abstract-variable.ll", + "DebugInfo/Generic/multiline.ll", + "DebugInfo/Generic/namespace_function_definition.ll", + "DebugInfo/Generic/namespace_inline_function_definition.ll", + "DebugInfo/Generic/noscopes.ll", + "DebugInfo/Generic/ptrsize.ll", + "DebugInfo/Generic/restrict.ll", + "DebugInfo/Generic/two-cus-from-same-file.ll", + "DebugInfo/Generic/version.ll", + "DebugInfo/LocalAddressSpace.ll", + "DebugInfo/UnknownBaseType.ll", + "DebugInfo/expr-opcode.ll", + ) + } + return t.NewPackage("spirv-llvm-translator", version, newFromGitHub( "KhronosGroup/SPIRV-LLVM-Translator", "v"+version, checksum, @@ -153,9 +204,7 @@ index c000a77e..86f79b03 100644 // litArgs emits shell syntax ScriptEarly: ` -export LIT_OPTS=` + litArgs(true, - // error: line 13: OpTypeCooperativeMatrixKHR Scope is limited to Workgroup and Subgroup - "cooperative_matrix_constant_null.spvasm") + ` +export LIT_OPTS=` + litArgs(true, skipChecks...) + ` `, }, &CMakeHelper{ Cache: []KV{