mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #2055] runtime tests: vk_null_descriptor_test builds without glslangValidator (TEST-NULL-DESCRIPTOR-NO-GLSLANG) #2061
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2061
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2055
Author: @xel1uz
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:test/null-descriptor-no-glslang📝 Commits (1)
b65ec46runtime tests: vk_null_descriptor_test builds without glslangValidator📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
runtime/test/vk_null_descriptor_test.cpp(+4 -0)📄 Description
Claimed in the coordination issue as:
TEST-NULL-DESCRIPTOR-NO-GLSLANG(#1608, https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7171848684)What and why
vk_null_descriptor_testcame in withba626820(the post-story-load integration). Its GLSL shader is only built when CMake findsglslangValidator, and only then isLEONIDA_TEST_NULL_DESCRIPTORS_SPVdefined (runtime/CMakeLists.txt, "without glslangValidator the test skips").main()checks for the macro and returns 77, butrun()in the anonymous namespace callsload_spirv(LEONIDA_TEST_NULL_DESCRIPTORS_SPV)without a check. So without glslang the file does not compile:The
linux-gpu-toolsjob in.github/workflows/runtime.ymlinstallslibvulkan-dev mesa-vulkan-drivers vulkan-tools spirv-toolsand no glslang. Itscmake --buildtherefore fails, and none of its later steps run: CPU runtime tests, predicate shaders, the three llvmpipe GPU passes and the pipeline-checker checks. The Windows and macOS jobs install glslang, so they don't see this.The fix compiles the namespace's helpers only when the macro is defined, the way
main()already assumes. Without glslang the test reports itself unsupported (77,SKIP_RETURN_CODE), like the other GLSL-based runtime tests. With glslang nothing changes.Tested
All runs are in Ubuntu 26.04 (Docker), with g++ 15.2, Mesa 26.0.8 llvmpipe, and Vulkan-Headers fetched at the pinned commit (
-DLEONIDA_VULKAN_HEADERS_FETCH=ON). The configure is otherwise as inlinux-gpu-tools:-G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON.mainwithout glslang (b9320a11, and9f9a7c5ffor this one target): the build stops with the error above.9f9a7c5fas well.ctestgives 93 of 93 tests passed, withvk_null_descriptorskipped (77).run_gpu_tests.pyruns natively, withLEONIDA_W64_EMULATE=1and withLEONIDA_BARY_FALLBACK=1. The only failure in all three iscs_imgatomic_ext, which #1518 already fixes.glslang-tools):vk_null_descriptor_testbuilds and passes on llvmpipe (vk_null_descriptor: ok, null descriptors and storage fallback images).git diff --checkandscripts/check_no_game_data.pyare clean on the changed file.GPUs tested: Mesa llvmpipe (LLVM 21.1.8), CPU only.
AI-assisted: Yes (Claude Code).
Checklist
mainand merges cleanly.docs/design.md- n/a.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.