build: OFFSCREEN_AGILITY_620_DIR builds fail on a 40-byte view-description static_assert #3167
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3167
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Not-Saii on GitHub · 2026-11-27 19:37 UTC · original
Reproduction
Current
main(88cddb09), Windows 11 build 26300, MSVC 14.44.35207, Windows SDK 10.0.26100, Agility SDK 1.620.2 from nuget.org (sdk.nupkgnext to its x64 DLLs, as described indocs/experiments.md):Expected and observed
Expected: both targets build, as they did when #147 was merged.
Observed:
d3d12_xs_device.cppfails in bothd3d12_xs_shimandoffscreen_check:That line is
static_assert(sizeof(D3D12_SHADER_RESOURCE_VIEW_DESC) == 40 && sizeof(D3D12_UNORDERED_ACCESS_VIEW_DESC) == 40);, added in #2532. The option puts the Agility SDK 1.620 headers first on the include path of these two targets. With them,D3D12_UNORDERED_ACCESS_VIEW_DESCis 48 bytes, because the newD3D12_BUFFER_UAV_BYTE_OFFSETunion member is larger than any member of the desktop SDK union.D3D12_SHADER_RESOURCE_VIEW_DESCstays 40 bytes (measured withsizeofagainst both header sets).The default build (option unset) is unaffected. Every opt-in Agility build is affected, including the
offscreen_checkWARP checks from #147 (bvh_wave64_warp,dxr_query_warpand the others) and every test that runsstartup_stream_consumer.Notes
The view record copies the title's description bytes (
record.desc_bytes >= sizeof(desc)), so making the buffer 48 bytes would also change, for UAVs, which descriptions count as "described". A fix probably needs to separate the size of the title layout (40 bytes) from the size of the header struct. I have not written one.AI-assisted.