Commit Graph

1 Commits

Author SHA1 Message Date
6e083c17d9 rdna2spirv, run_gpu_tests: folders outside the ANSI code page reach the native tools
On Windows, spirv-as, spirv-val and the GPU test programs read their command line in the ANSI code page, so a folder
name with a character outside it (a Cyrillic or CJK user name, as under %TEMP%) reached them as '?' and every shader
failed with "file does not exist": run_gpu_tests.py's default work folder broke for such users, and so did
make_game.py's shaders stage under such a work folder.

- assemble_spirv pipes the .spvasm into `spirv-as -` and runs both tools in the output folder with the staging file's
  bare name, so no path reaches them.
- run_gpu_tests.py runs the suite in the work folder's 8.3 short name when its path doesn't fit the code page, and
  stops with one error line when the volume keeps no short names.
- tests/test_native_tool_paths.py: 8 tests with a private-use character in the folder name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:57:30 +05:30