Repository navigation
Shaders: support cube dimension in descriptor_data - #317
tarcisioads wants to merge 1 commit into
Conversation
|
Review note on the MSAA case. For kinds 3 and 8 (MSAA) the level count is set to 1: let levels = if uav || matches!(kind, 3 | 8) { one } else { field(self, 3) };so the descriptor's last-level field comes out as 0. The RDNA 2 ISA's image resource table defines that field differently for MSAA:
Code that reads the sample count from the descriptor would get 1 sample. The host view's sample count is available ( For the cube case, #109 hardcodes the depth field as 5, which matches the same table ("depth: ... last array slice for a 2D-array or 1D-array or cube-map"); here it is taken from From the document and reading the diff only; I have no copy of the title. |
4a3f8a8 to
8133754
Compare
|
Rebased onto
|
|
Independent verification on Windows 11 + NVIDIA RTX 3070 (Rust 1.98.1) at head
|
8133754 to
23fd508
Compare
|
Automated triage for the maintainers. Merge candidate. Recommending a look, not approving.
CI: Generated by Claude Code |
23fd508 to
5a7ef38
Compare
|
Addressed the triage feedback:
|
5a7ef38 to
a2dddc3
Compare
…escriptor_data) into the integration Our descriptor data (skewed loads, twin loads, the six faces of a cube, the level query only when word 3 is read) stays; the multisampled dimensions, their type codes and their level-less size query are taken from the PR, with its test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
Support cube (
dim = 3) image dimensions when a shader reads a resource descriptor's metadata words as data (descriptor_dataincrates/victory-shader/src/emit/lower.rs):dim = 3 => 5(TextureCube) indescriptor_data.depth = 6before- 1(yielding5, matching the RDNA2 ISA descriptor table for 6 faces) and add11(SQ_RSRC_IMG_CUBE) to the hardware type table in word 3.cube_descriptor_data_lowersverifyingSFI0RESOURCE_HEAPemission.Verification
cargo test -p victory-shader(119 passed, 0 failed, 1 ignored benchmark on macOS; Windowsdxil.dllvalidation not run)cargo xtask policy(ok)