d3d12: place a single-plane paired depth image that starts in unordered access #630

Merged
NickStallman merged 2 commits from upstream-pr/630 into main 2026-12-01 20:32:32 +00:00
NickStallman commented 2026-12-01 17:13:17 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T17:13:17Z.


ProjectScarlett places a 768x768 cube depth array (R16_TYPELESS, depth and unordered access, 6 slices) in UNORDERED_ACCESS while it loads. place_gpu_target refuses every paired depth image that starts in UNORDERED_ACCESS with E_NOTIMPL, so the title asserted and exited:

resource slot 133 failed 0x80004001: dim=3 768x768x6 mips=1 format=53 samples=1 layout=0x0 flags=0x80300006 align=0x0 initial=0x3

A committed paired image that starts there already works: depth::host_initial_state parks a single-plane pair's depth surface in COPY_SOURCE while the companion takes the unordered-access writes, which is where the enhanced handoff expects it when the image leaves UNORDERED_ACCESS (#519's test uses this same shape). This gives the placed path the same rule through a new depth::host_initial_layout. A two-plane pair still can't start in UNORDERED_ACCESS and is refused as before.

In a title (measured by @DrArroway, RX 6900 XT, RADV, on 93324a2b)

Without this change the title aborted at the same slot-133 assert. With it, two runs passed that point: one reached 10,936 presents before an unrelated submission rejection (#634), the other entered the world (8,396 presents, 413.9 s) with TUXBOX_LAZY_PUBLICATION=0.

Tests

  • Lanes placed-depth-uav (new): places the title's exact description (R16_TYPELESS, depth and unordered access, 768x768x6, layout unknown) in UNORDERED_ACCESS, clears it through a Texture2DArray UAV, barriers it to COPY_SOURCE, copies all six slices out and checks every texel.

    • AMD iGPU (1002:13c0, RADV, GE-Proton11-15): passes with this change. The control (main plus only the scenario) fails at placement: place a paired depth cube in UNORDERED_ACCESS failed: 0x80004001. The only other Lanes failure on both is texture-publication, which is #625.
    • RTX 5090 (10de:2b85, 620.70.10): passes with this change (29 pass; the one Lanes failure is texture-publication, #625). The control fails at placement as on AMD.
  • a_placed_single_plane_pair_starts_its_depth_surface_in_copy_source, with the exact description above. The device::depth:: tests pass under Wine.

  • The no-GPU check will be added; an earlier run on e50b77de failed only on the clippy finding that 712fb960 has since fixed.

🤖 Generated with Claude Code

<!-- greyfinch-sync:brcly/TuxBox:issue:5590677837 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/630). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-12-01T17:13:17Z. --- ProjectScarlett places a 768x768 cube depth array (`R16_TYPELESS`, depth and unordered access, 6 slices) in `UNORDERED_ACCESS` while it loads. `place_gpu_target` refuses every paired depth image that starts in `UNORDERED_ACCESS` with `E_NOTIMPL`, so the title asserted and exited: ``` resource slot 133 failed 0x80004001: dim=3 768x768x6 mips=1 format=53 samples=1 layout=0x0 flags=0x80300006 align=0x0 initial=0x3 ``` A committed paired image that starts there already works: `depth::host_initial_state` parks a single-plane pair's depth surface in `COPY_SOURCE` while the companion takes the unordered-access writes, which is where the enhanced handoff expects it when the image leaves `UNORDERED_ACCESS` (#519's test uses this same shape). This gives the placed path the same rule through a new `depth::host_initial_layout`. A two-plane pair still can't start in `UNORDERED_ACCESS` and is refused as before. ## In a title (measured by @DrArroway, RX 6900 XT, RADV, on 93324a2b) Without this change the title aborted at the same slot-133 assert. With it, two runs passed that point: one reached 10,936 presents before an unrelated submission rejection (#634), the other entered the world (8,396 presents, 413.9 s) with `TUXBOX_LAZY_PUBLICATION=0`. ## Tests - Lanes `placed-depth-uav` (new): places the title's exact description (R16_TYPELESS, depth and unordered access, 768x768x6, layout unknown) in `UNORDERED_ACCESS`, clears it through a `Texture2DArray` UAV, barriers it to `COPY_SOURCE`, copies all six slices out and checks every texel. - AMD iGPU (`1002:13c0`, RADV, GE-Proton11-15): passes with this change. The control (main plus only the scenario) fails at placement: `place a paired depth cube in UNORDERED_ACCESS failed: 0x80004001`. The only other Lanes failure on both is `texture-publication`, which is #625. - RTX 5090 (`10de:2b85`, 620.70.10): passes with this change (29 pass; the one Lanes failure is `texture-publication`, #625). The control fails at placement as on AMD. - `a_placed_single_plane_pair_starts_its_depth_surface_in_copy_source`, with the exact description above. The `device::depth::` tests pass under Wine. - The no-GPU check will be added; an earlier run on e50b77de failed only on the clippy finding that 712fb960 has since fixed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DrArroway commented 2026-12-01 18:26:27 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-12-01T18:26:27Z.


Confirmed on AMD Radeon RX 6900 XT (1002:73bf) (Mesa 26.3.1-arch3.5 RADV NAVI21, GE-Proton11-14), testing e242a160 cleanly cherry-picked onto main (93324a2b):

  • Without #630 (main 93324a2b): ProjectScarlett aborted at profile/world init with the exact same resource slot 133 failed 0x80004001: dim=3 768x768x6 mips=1 format=53 samples=1 layout=0x0 flags=0x80300006 align=0x0 initial=0x3 assert (0x80000003 at game_scarlett_master.exe + 0x14A6390).
  • With #630: Cleared slot 133 cleanly in two ProjectScarlett runs:
    • With default TUXBOX_LAZY_PUBLICATION=1: passed slot 133 and reached 10,936+ presents before hitting a separate AMDGPU userptr -EPERM (-1) CS rejection (filed separately in #634).
    • With TUXBOX_LAZY_PUBLICATION=0: entered the world cleanly (8,396 presents, 146,142 recorded GPU commands, 413.9s, before hitting the separate #232/#603 TCP PERMISSION_FAULTS: 3 fault).
<!-- greyfinch-sync:brcly/TuxBox:comment:7320950293 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/630#issuecomment-7320950293). Originally posted by [DrArroway](https://github.com/DrArroway) on 2026-12-01T18:26:27Z. --- Confirmed on **AMD Radeon RX 6900 XT (1002:73bf)** (Mesa `26.3.1-arch3.5` RADV NAVI21, `GE-Proton11-14`), testing `e242a160` cleanly cherry-picked onto `main` (`93324a2b`): - **Without `#630` (`main` `93324a2b`):** ProjectScarlett aborted at profile/world init with the exact same `resource slot 133 failed 0x80004001: dim=3 768x768x6 mips=1 format=53 samples=1 layout=0x0 flags=0x80300006 align=0x0 initial=0x3` assert (`0x80000003` at `game_scarlett_master.exe + 0x14A6390`). - **With `#630`:** Cleared slot 133 cleanly in two ProjectScarlett runs: - With default `TUXBOX_LAZY_PUBLICATION=1`: passed slot 133 and reached `10,936+` presents before hitting a separate AMDGPU userptr `-EPERM (-1)` CS rejection (filed separately in `#634`). - With `TUXBOX_LAZY_PUBLICATION=0`: entered the world cleanly (`8,396` presents, `146,142` recorded GPU commands, `413.9s`, before hitting the separate `#232`/`#603` `TCP` `PERMISSION_FAULTS: 3` fault).
NickStallman commented 2026-12-01 18:49:23 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T18:49:23Z.


@DrArroway thank you, that's the confirmation in a title this needed. I've added your runs to the description.

<!-- greyfinch-sync:brcly/TuxBox:comment:7321614413 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/630#issuecomment-7321614413). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-12-01T18:49:23Z. --- @DrArroway thank you, that's the confirmation in a title this needed. I've added your runs to the description.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!630
No description provided.