Commit Graph

4 Commits

Author SHA1 Message Date
f4e0cf2baa tests: read the realtime queue desc on the real queue; tools: check prebuilt .spv magic
Two leftovers from the console-ABI review round:

- PC GetDesc shares console slot 18 with the newer layout's
  GetTimestampFrequency; the proxy deliberately serves the frequency
  getter while the layout is undetected, so the GLOBAL_REALTIME
  priority check reads the desc on the real queue instead of trusting
  an 8-byte frequency written into a desc-shaped out-buffer.
- shaders_into() accepted any two files named vs.spv/ps.spv when
  spirv-as was absent; a stray file would reach vk_harness and fail
  far from the cause. The prebuilt pair is now checked against the
  SPIR-V magic first.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-22 18:53:55 -07:00
3cfc666e7b tools: hello_pixels uses prebuilt vs.spv/ps.spv when spirv-as is absent
The doc already promised the no-SDK path — drop the pair --emit-only
produced on another machine into the work directory — but main() called
assemble() unconditionally, so a machine without spirv-as exited before
the prebuilt files could be used. shaders_into() now reuses an existing
pair only when spirv-as is absent; fresh assembly always wins when it is
on PATH, so a stale pair cannot shadow the sources. shdann's report on

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-22 18:45:15 -07:00
fca2064fba tools: hello_pixels reconfigures stdout like the other CLI tools
The #1406 guard every tool's __main__ block carries: under python -I a
redirected stdout uses the console code page, and a path with characters
outside it must not end the run in UnicodeEncodeError.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-22 17:02:10 -07:00
d2dbb0b690 tools: hello_pixels draws a synthetic quad through vk_harness
The package-free complement to first_light: hand-written SPIR-V
assembly (no GLSL compiler, spirv-as only), a generated VKH_DRAW_MESH
quad, RGBA32F readback to PPM and a zlib-only PNG, and a --check oracle
(coverage + 7 probe pixels against the pattern's closed form) exercised
by tests/test_hello_pixels.py without a GPU. Measured end to end on
Mesa llvmpipe 20.1.2 at 512x512.

Assisted-by: Devin
2026-11-22 16:41:15 -07:00