Repository navigation
Conversation
|
Independent Linux/Wine + NVIDIA RTX 3070 Ti review/test at
|
|
Tested for #2464 as Aslanek asked: unit tests and a game run on my machine; CI ignored for now as asked. Reading (marked):
Limits: one machine, one run for the PR, one run for each main witness. AI-assisted (Claude Code, Claude Opus 5.5) |
|
Follow-up to my RUN above: the check on main is now done. Each of the three tests, built from this PR's test files on top of main ec91d69's sources, fails on main and passes with the PR:
Same machine as above (RTX 4060 8 GB, NVIDIA 610.88, Windows 11). One correction to the RUN above: on main with this exact recipe the world entry was 195 and 200 s (two runs), not "about 165 to 200 s"; the 165-175 s runs had one setting changed. The rest of the RUN is unchanged. AI-assisted (Claude Code, Claude Opus 5.5) |
|
Tested on a Mac under Wine (Apple M3, macOS 26.5.1, Wine 11.0 with its MoltenVK 1.4.1), merged onto
This matters on Macs in particular: MoltenVK has no A4R4G4B4 colour attachment, so AI-assisted (Claude Code). Report only. |
|
Reviewed at head Verification
Notes (non-blocking)
Approve. AI-assisted review + local MSVC/dual-GPU verification. |
timbot103
left a comment
There was a problem hiding this comment.
Static code audit against e7d11f0da + ec740bcc3. The packed clear conversion and the shared color payload for full and rectangular clears look correct.
Both regions now expect green 0x00, so a fallback that always writes zero to green passes (runtime/test/d3d12_b4g4r4a4_target_test.cpp:205). Could the outside clear use green 10.0f / 15.0f and expect 0xAA there? That preserves a nonzero green readback alongside the new negative clamp, tie, and NaN checks.
AI-assisted.
|
@timbot103 Good catch. AI-assisted. |
|
Independent RTX 3080 verification at exact All three focused CTests passed on both revisions ( Synthetic fixtures. AI-assisted (Codex). |
Windows 11 + RTX 3090 + WARP Verification (
|
|
Verified by OreoFR — READY
AI-assisted (Claude Code, Claude Opus 5.5), run for OreoFR. |
Part of
RT-STATE-AUDIT-FORMATS(#2464; based on the format-state audit notes in #1608 by@kevincommitsand@Tauwni).Summary
VK_FORMAT_A1R5G5B5_UNORM_PACK16,VK_FORMAT_A4R4G4B4_UNORM_PACK16,VK_FORMAT_R4G4B4A4_UNORM_PACK16, andVK_FORMAT_A4B4G4R4_UNORM_PACK16todetail::render_target_clear_colorinruntime/src/vulkan_replay.hso 16-bit packed UNORM clears follow D3D12 round-to-nearest-even, clamp, andNaN -> 0rules across GPUs (VK_FORMAT_R5G6B5_UNORM_PACK16is intentionally left untouched to avoid overlapping Quantize RGB565 render-target clears at each channel width #2268).std::nearbyint(std::clamp(channel, 0.0f, 1.0f) * 15.0f) / 15.0fin thergba4_render_fallbackclear path (runtime/src/vulkan_replay.h) withdetail::quantize_unorm(channel, 15.0)so 4-bit tie rounding andNaNhandling do not depend on the thread's active floating-point rounding mode.Tests
runtime/test/clear_color_test.cpp: added 16-bit packed UNORM clear quantization cases (A1R5G5B5,A4R4G4B4,R4G4B4A4,A4B4G4R4) andrgba4_render_fallbackreplay coverage underFE_DOWNWARD,FE_UPWARD, andFE_TOWARDZERO(full + rectangular clears, tie/clamp/NaN, includingVK_FORMAT_UNDEFINED).runtime/test/d3d12_b4g4r4a4_target_test.cpp: clear{0.5f, -1.0f, 2.0f, NaN}underFE_DOWNWARDand verify RGBA8 readback{0x88, 0x00, 0xFF, 0x00}(skips with 77 on GPUs with nativeA4R4G4B4color attachment support).runtime/test/d3d12_clear_formats_test.cpp: addedB5G5R5A1_UNORMandA4B4G4R4_UNORMdifferential WARP cases.Negative control & verification
main(ec91d695c):clear_color_testfailed onA1R5G5B5(got 0.5, expected 0.516129017).d3d12_b4g4r4a4_target_testfailed on RTX 5070 underFE_DOWNWARD(texel (8, 4) = 77 00 ff 00, want 88 00 ff 00).d3d12_clear_formats_testfailed on RTX 5070 vs WARP on 4B5G5R5A1_UNORMcases (layer 0f, WARP 10andlayer ef, WARP f0).ctest -R "^(clear_color|d3d12_b4g4r4a4_target|d3d12_b5g5r5a1_uav|d3d12_clear_formats)$": 4/4 passed.python scripts/check_no_game_data.py: clean.python -m unittest tests/test_ctest_registration.py: 6/6 OK.git diff --check: clean.GPUs tested: NVIDIA GeForce RTX 5070 (Windows 11, native Vulkan + WARP;
VK_LAYER_KHRONOS_validationnot installed locally).AI-assisted (Antigravity, Gemini).
Independent RTX 3080 Vulkan validation: all three focused CTests passed, including the RGBA8 fallback and the nonzero green outside the rect. Test report.