Repository navigation
d3d12_pipeline_library_host_test: handle host trailing padding in serialized empty libraries on AMD - #6088
d3d12_pipeline_library_host_test: handle host trailing padding in serialized empty libraries on AMD#6088liamhob wants to merge 1 commit into
Conversation
…ialized libraries on AMD
|
Comparison with #5873 (coordinator asked, 13:08). I merged both onto main They do not conflict as text, but they relax the same step. #6088 matches One difference worth deciding: on NVIDIA the host rejects the flipped byte, and this run shows |
|
@liamhob @KoertLichtendonk, comparing this with #5873 as asked. Both PRs handle the same step,
I'm fine either way. If the maintainer prefers this narrower rule, I'll close #5873. Otherwise #5873 can stay as it is, and this PR's padding explanation would be worth keeping in the docs line. AI-assisted (Claude Code). |
|
Tested
Synthetic CTest target only; no game files. |
|
Independent Windows 11 / RTX 5080 (621.01) compatibility check of |
|
Tested Built with Exit code 0. The AMD host-padding rows are classified as not compared, matching the PR. AI-assisted. |
|
Static review (Windows-host C++ test, not runnable on this CPU-only Linux verifier): the added skip is fail-safe — it fires only when the host accepted the flipped trailing byte, so a host that rejects is still compared and can still fail, and it is scoped to the one "last byte flipped" case by name prefix (line 108). The docs hunk matches the AMD 872-byte empty library and passes the table-ids and repeated-lines guards, and the merge is clean against the post-round-44 docs. One consequence worth confirming you intended: if both sides accept the flipped blob, that case is now skipped rather than compared. Flag: the branch reports no CI checks. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only review). |
|
Tested
AI-assisted (Claude Code). |
larpinguser
left a comment
There was a problem hiding this comment.
Summary: runtime/test/d3d12_pipeline_library_host_test.cpp detects the "own blob, last byte flipped" steps and skips comparison when the host accepts its 872-byte AMD library's trailing padding (S_OK or output count 1), while still comparing NVIDIA's rejected case. docs/d3d12_vulkan.md records the 900/872-byte host sizes and this format difference.
Why merge: Removes a false mismatch on AMD hosts while preserving the parity check everywhere the host rejects the corrupt byte.
Verdict: Approve
|
Summary: Why merge: Removes a false mismatch on AMD hosts while preserving the parity check everywhere the host rejects the corrupt byte. Verdict: Approve |
What and why
On \main\ (\561b65a8), \d3d12_pipeline_library_host_test\ fails on hosts with AMD native D3D12 (measured on AMD Radeon RX 9070 XT, driver 26.10.1):
\
pipeline library create: its own blob, last byte flipped: ours 0x80070057 host 0x0 MISMATCH
pipeline library create: its own blob, last byte flipped (output): ours 0x2 host 0x1 MISMATCH
\\
The test already treats device-specific formats as non-comparable ([own format]). This change checks whether the host accepted flipping the last byte in its own serialized format (\ heirs == S_OK\ and output non-null); when it does, it reports this host format difference and skips failing on it. On NVIDIA (where the host rejects it with \E_INVALIDARG), the step continues to compare identically.
Verification