D3D12.X: resolve GPU-view CBVs, accept typeless sky domes, and add pre-sky fallback in ambient #2727
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2727
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2727"
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?
@Saksukella on GitHub · 2026-11-26 08:59 UTC · original
Saksukella:fix/ambient-sky-cbv-fallback→amd-dev· +65 −17 · 2 files · 1 commits · openWhat is in it
crates/xcl/src/hle/d3d12x/ambient.rs:is_sky_dome_target: acceptDXGI_FORMAT_R16G16B16A16_TYPELESSalongsideDXGI_FORMAT_R16G16B16A16_FLOAT(both are copy-compatible withad.sky_copyR16G16B16A16_FLOAT).AMBIENT_FILL_HLSL+after_compute_dispatch: passsky_readyandcfg.leastin the constant buffer soPassRole::TemporalResolvecan still populate a floor ambient level before the first sky-dome capture instead of returning early (whilePassRole::ReflectionHistorystill waits forsky_ready).resolve_cbv_va+scan_cbv_indices+find_dispatch_views: resolve GPU-view (PAGE_NOACCESS) CBV virtual addresses throughkernelx::mirrors::mapped_source/mirrors::sourcebefore reading bindless descriptor indices, and scan all 64 slots (up from 32) inParam::Tablefor CBVV#descriptors.ReflectionHistory.is_ambient_compute(blob)and extendambient::tests(sky_dome_filter_rejects_r11g11b10_and_wrong_sizes+ D3DCompile check on updatedAMBIENT_FILL_HLSL).crates/xcl/src/hle/d3d12x/real.rs:ambient::is_ambient_compute) fromSubmitFlags::sparedsoCS_ScreenProbes_TemporalResolveandCS_UpdateHistoryare not skipped as image-only compute shaders while building.amd-dev(whereambient.rslives).Tested
32.0.32029.2010), 24-thread x86_64 CPU, 32 GB RAM, Windows;rustc 1.100.0 (0ef1bc386 2026-11-09); debug (tests) and release (xcl.exe).cargo test -p xcl --lib ambient::tests: 5 passed, 0 failed (0.03s, includingsm5_ambient_hlsl_shaders_compile_cleanlyviaD3DCompile).Regression run
Not tested
AI use
web-server-mcpagent team): assisted with auditingambient.rsandreal.rs, diagnosing why stand-in ambient dispatches did not fire, implementing the fixes and tests, and running local tests and smoke verification. All diffs and measurements were verified locally on hardware.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.