mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2069] Decode generated shader fixture paths as UTF-8 (TEST-SHADER-FIXTURE-UTF8) #2075
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#2075
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/2069
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/shader-fixture-utf8📝 Commits (1)
2355e60Decode generated shader fixture paths as UTF-8📊 Changes
2 files changed (+21 additions, -0 deletions)
View changed files
📝
runtime/test/shader_fixture_path.h(+8 -0)📝
runtime/test/shader_fixture_path_test.cpp(+13 -0)📄 Description
Claimed in the coordination issue as: TEST-SHADER-FIXTURE-UTF8
What and why
CMake passes the absolute generated shader paths to GPU tests as narrow UTF-8 strings. The implicit filesystem path conversion uses the Windows native narrow encoding, which can make tests miss a shader under a non-ASCII build directory. Convert these strings as UTF-8 before checking the original file and the packaged fallback. Callers that already have a filesystem path use the existing overload. C++ filesystem encoding rules
Tested
e48ff03and passed inshader_fixture_pathCTest after the patch. It exercises both an absolute generated path and a packaged fallback with non-ASCII names.vk_null_descriptor_testin a non-ASCII CMake build directory and ran it successfully on the RTX 4080 from a working directory without a fixture fallback. The standalone compiler crashed when asked to emit directly into that build directory. For the reader test, I staged the synthetic SPIR-V generated from byte-identical GLSL in an ASCII build directory.git diff --checkand the source-only check.GPUs tested: NVIDIA RTX 4080, driver 621.01, Windows 11.
AI-assisted: yes.
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.