Repeatable checks

Configure with SNX_TEST_VULKAN=ON, then build before running the harness. It needs only this checkout, the built fixtures and a Vulkan driver. It does not build or install dependencies. Keep the source and binaries unchanged during its run. Supply a new output directory for each run.

cmake --build build --target snx-test-nvn-descriptors snx-test-nvn-tex-storage \
  snx-test-nvn-commands snx-test-nvn-draw-banks snx-test-nvn-copy-formats snx-test-nvn-names \
  snx-test-nvn-advanced-blend snx-test-vk-coverage snx-test-vk-tess-passthrough \
  snx-test-vk-sample-locations snx-test-shader-indexed-ms snx-test-shader-tcs-dead-outputs \
  snx-test-shader-direct-regressions snx-test-shader-float-rounding snx-test-shader-integer-half snx-test-shader-blend-images \
  snx-test-shader-half-native snx-test-shader-half-packing snx-test-shader-txd-uniform \
  snx-test-nvn-queue-lifetime snx-test-vk-advanced-blend snx-test-vulkan -j6
ctest --test-dir build -R 'nvn_contracts|vk_sample_locations|vk_tess_passthrough|shader_(indexed_ms|tcs_dead_outputs|float_rounding|integer_half|blend_images|half_native|half_packing|txd_uniform)'
python3 tools/check_nvn_rendering.py --validation --record both --out .cache/nvn-render-check-new

--icd /path/to/driver.json adds another driver to the default driver. Each GPU runs the full headless output suite with descriptor sets, descriptor buffers and descriptor heaps, using staging memory. --record both checks synchronous and threaded command recording; the default checks synchronous recording. --validation enables the installed validation layer. A driver returning 77 is reported as skipped, never as passed. Each GPU run must include the exact-output markers for all required NVN features. Optional hardware features need their own explicit PASS or SKIP marker. The JSON preserves feature skips even when the other checks pass. all_gpu_features_passed cannot be true with skips.

The output contains runtime source hashes in sources.json, binary hashes, per-process logs and results.json. It checks binary hashes before/after each process and source hashes after the suite. These detect changes during a run. They do not prove that a binary was built from the captured sources. Build first.

The earlier follow-up revision passed 19 selected checks across the NVIDIA RTX 5050 Laptop GPU and AMD Radeon 780M, descriptor sets/buffers and synchronous/threaded recording. That validation result applies to that revision. AMD explicitly skipped native advanced blending and mixed-sample coverage, while its ordered shader blend path passed. Earlier mutation checks exercised transform-feedback counts, coverage indexing, tessellation input selection, retained metadata, subroutine addresses, sRGB transfer and blend endpoints.

The preceding integrated revision passed all 29 selected checks: 21 native fixtures and eight complete Vulkan runs across NVIDIA RTX 5050 Laptop and AMD Radeon 780M, descriptor sets/buffers and synchronous/threaded recording. Source and executable hashes remained unchanged during the matrix. Both descriptor paths also passed the forced-UMA suite after the new fixtures received isolated guest-memory ranges.

Each GPU run checks nine shader-read cases, 8,192 integer-to-half results, 768 floating-point narrowing results, 128 half texture/arithmetic results, 170 strict gradient samples and 24 uniform-offset samples, in addition to the existing rendering suite. The native conversion path and software fallback have separate tests. Disabling map invalidation makes the changed-table regression fail. Restoring the old full-window shader read makes the no-host-wait regression fail. Both mutations were restored byte for byte before rebuilding. A third regression puts another mapping into the source hole left by mremap; whole-range cleanup fails it, while prefix/suffix cleanup preserves the mapping.

The earlier integrated 489-test CTest run passed 485 checks and skipped three optional QEMU checks. The SDL keyboard-focus check failed under the dummy video driver. All Vulkan checks passed. The five POSIX platform variants also passed after the alias cleanup change. All 55 Linux and MinGW syntax checks passed for the changed C sources. A full Windows cross-link remains unavailable locally because the target LLVM import library is absent.

AMD explicitly skips native advanced blending and native mixed-sample coverage. NVIDIA 615.78.08 returns mip 1 for a separate cross-face cube-gradient probe whose analytic result is mip 2. That exact driver/result combination is reported as a skip; every other mismatch fails. The 170 strict center and magnification-edge cases remain mandatory. The report's all_gpu_features_passed is false when any feature is skipped.

Validation used an unmodified upstream Khronos layer at revision 0eb481b, version 1.4.367. The installed 1.4.363 layer incorrectly sums clip-distance inputs and outputs; the newer layer checks each interface separately. No validation errors were filtered. Use a current layer for the clip-forwarding checks.

After integrating upstream f97e460a, the full Clang build and 69 selected CPU tests passed. The rendering harness covers CPU/shader executables and complete GPU runs with sets, buffers and heaps, recording off/on, on NVIDIA RTX 5050 Laptop and AMD Radeon 780M. Every validation diagnostic now fails the run, including messages whose VUID appears on a later line. The report records executable hashes, the GPU source snapshot and explicit capability skips. Four separate storage-buffer retention runs passed on those devices and recording modes. All 264 exported coverage/depth modules passed Vulkan 1.3 SPIR-V validation.

Storage-only fixtures declare no unused color outputs. The headless test exits through the runtime's immediate-exit helper after its assertions and output flush, preserving every exit status. This avoids unloading the video driver while detached driver workers still run; the NVIDIA recording-thread run previously reached its final PASS and then stalled in driver library cleanup.


Made from docs/history/gpu-rendering-audit.md at 69237645142c. GPL-3.0-or-later.