Repository navigation
First Light: replay custom vertex layouts and validate packed meshes - #2766
toeeshchaudhary wants to merge 3 commits into
Conversation
|
Code read of AI-assisted review (Claude Code). |
Desamodeth
left a comment
There was a problem hiding this comment.
test_draw_matches_the_manifest still passes mesh.bin and 0:3f,1:2f to the harness. On 3d311342, a prepared draw using prop.bin and 0:3f,1:3f,2:4f,3:2f passed the real first_light.py --check CLI, then failed the direct replay test because the test requested a nonexistent mesh.bin.
With the two-line change below, all eight tests passed for each of two manifests (legacy and custom). I used a CPU-only harness stand-in on Windows that checked the selected packed mesh and stride and returned synthetic readback. Rendering was outside this check. AI-assisted with Codex Astra 6.2 High.
diff --git a/tests/test_first_light.py b/tests/test_first_light.py
index 00cc5699..3b44c57c 100644
--- a/tests/test_first_light.py
+++ b/tests/test_first_light.py
@@ -92,8 +92,8 @@ class FirstLightTests(unittest.TestCase):
) # a fresh run: a harness that writes nothing cannot pass on a stale file
env = dict(
os.environ,
- VKH_DRAW_MESH=os.path.join(self.out, "mesh.bin"),
- VKH_VERTEX_LAYOUT="0:3f,1:2f",
+ VKH_DRAW_MESH=os.path.join(self.out, self.manifest.get("files", {}).get("mesh", "mesh.bin")),
+ VKH_VERTEX_LAYOUT=self.manifest.get("vertex_layout", "0:3f,1:2f"),
)
subprocess.run(
[|
AI-assisted independent Windows GPU verification for the synthetic mesh-replay groundwork under TEST-525. I built the stock Using uv CPython 3.12.13, RTX 3080 (616.64) and Radeon iGPU (32.0.21030.2001) each matched the CPU barycentric oracle on all 512 RGBA32F pixels per draw. Coverage was 124/512 legacy and 144/512 custom on both GPUs. Clear pixels and covered B/A matched exactly, and maximum absolute UV error was 1.40e-7. All four runs were serial with a 30-second deadline, one native ICD per process, an empty implicit-layer path, and Khronos 1.4.363 core and synchronization validation confirmed active with zero validation errors or warnings. |
|
Tested 3d31134 on Steam Deck LCD (AMD Custom GPU 0405 "Van Gogh" / RDNA2, RADV Mesa 26.2.0-devel, Vulkan 1.4.350, SteamOS 3.9.5): pass (Python tests).
Caveat: I did not rebuild AI-assisted (OpenCode). |
|
3d31134 no longer merges with main (98fa503): |
|
BUILD-804 independent readback review — claim. Finished; no competing PR from me. Setup: PR head Environment (AI-assisted, OpenCode): Windows 11 Pro 26300, NVIDIA GeForce GTX 1060 6GB / driver 582.78 (Vulkan 1.4.312, subgroup 32..32, no ReBAR), MSVC 19.44.35230, CMake 4.4.4 + Ninja, RelWithDebInfo, Python 3.12.10. No game data, keys or decryption; all inputs synthetic. Readback: asymmetric synthetic triangle Negative control: changing only the manifest layout to the default Other tests on the merged tree: Conclusion: the manifest-driven vertex-layout replay works correctly on Pascal; no defect found. |
|
Tested At Removing only the layout from the manifest selected the default stride. The same mesh was then rejected with exit 2. This exercised the manifest-to-harness path with hand-written shaders and synthetic geometry. AI-assisted verification. |
|
Current-head Windows CPU integration at On the combined tree a synthetic OBJ quad, triangle and UV seam packed into 7 vertices and 9 indices. Normal preparation, default replay and custom replay with layout |
|
Tested 45bff4e on NVIDIA GeForce RTX 5060 Laptop GPU (the mobile chip, Blackwell, 32-lane subgroups), driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04.1 (Linux). The package-gated integration checks stay untested here (no game copy); the mesh-draw path itself now has a synthetic GPU check:
AI-assisted (Claude Code): it built the PR, made the synthetic meshes and shaders, ran the checks and wrote this. |
Groundwork for TEST-525. Replay takes the mesh filename and float vertex layout from the manifest. The harness checks the file size and index bounds before Vulkan initialization. Windows g++ build passed. Three malformed mesh cases were rejected. Five Python tests passed and three GPU integration tests were skipped. AI-assisted.