Shaders: classify translated resource heap dependencies #2785
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2795"
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?
Imported from ivall/xcl. Originally posted by ZekkJJ on 2026-11-26T13:36:12Z.
Collect conservative direct resource-heap dependencies from reachable instructions in emitted DXIL. This prepares submission-side experiments and leaves shader bytes, descriptor publication, and tile mapping unchanged.
What is in it
descriptor_access.rsfinds finite sets of slots through constants, selects, and finite phi expressions. An unresolved resource index represents the whole heap. Sampler accesses and root register bindings are accounted for separately.XCL_DXIL_HEAP_ACCESS=1reports emitted-module totals. Cached DXIL and HLSL fallback coverage are outside this census.Tested
ee06111f923bf07978b5ac66de4bbbb0fd150f4bon RTX 4060 Laptop, driver32.0.16.1656, Ryzen 7 8845HS, Windows build 26200, Rust 1.98.1, debug tests.XCL_ADAPTER=4060andXCL_DXIL_HEAP_ACCESS=1,cargo test --offline --locked -p xcl --lib -j 1 -- 'gpu::dxil::' --nocapture --test-threads=1reported 187 passed, 0 failed, and 3 ignored. One of the 187 reported passes printedSKIPPEDbecause the adapter cannot run wave64.Regression run
The required main and clean-head
xcl-smokepair is pending. This revision is for draft review.Not tested
AI use
OpenAI Codex (GPT-6) wrote the implementation, tests, and draft description, ran the tests, and inspected the results. The implementation is independent of the Cool Fox source code.
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-26T13:43:19Z.
Independent Windows check on
ee06111f923bf07978b5ac66de4bbbb0fd150f4b. I added two local test probes and left the implementation untouched.{20}. Expanding it to 127 possible visits returned unknown despite the expression having only one distinct slot, confirming the separate 64-node proof cutoff.XCL_DXIL_HEAP_ACCESS=0and=1. All three pairs matched byte for byte (1,320 B register UAV, 1,132 B constant heap UAV, 1,188 B dynamic heap UAV). The disabled run printed no census. The enabled run counted one no-resource-heap module, one finite, and one unknown, with one register binding.Windows 11 build 26200, Rust 1.97.1 MSVC debug.
cargo test --locked --offline -p xcl --lib -j 2 -- gpu::dxil::module::descriptor_access::tests:: --test-threads=1 --nocapturepassed 5 tests with the census off. Rerunning onlycensus_emission_probewith the census on passed 1 test. No ignored or failed tests in either run. These checks cover in-process DXIL analysis and container emission. GPU execution, the workspace suite, and a retail title were outside this run.OpenAI Codex assisted with the probes and verification. The exact model identifier was unavailable in this session.
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-26T13:51:50Z.
Regression run of
ee06111on a newer retail title: no device removal, no crash, frames and commit within the limits.Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of main
b49be18(this PR's base) and of this PR's exact head, run back to back,scripts/smoke.ps1 -Game <title>for 60 s withXCL_NETWORK=0and A pressed every 4 s from 20 s.main:
this PR:
98 % of main's frames, 100 % of its peak commit. One run each.
Not tested: the suite on this head; AMD.
AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:34:33Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:58:10Z.
Triage (#1607) – head
ee06111No open or merged PR adds this classification. Main's
Module::referenced_bindingscovers onlycreateHandleFromBindingranges. The newdescriptor_accessis an opt-in counter (XCL_DXIL_HEAP_ACCESS=1) run intry_to_bitcode, and nothing uses its result yet. The build check passes; only the description check fails (draft).No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.