Repository navigation
[removed by author] - #1649
[removed by author]#1649shortside wants to merge 4 commits into
Conversation
|
Thanks for taking this one. Keep the flag here, that's the better order. My vtable branch isn't open as a PR yet and it's still on 508a0c7, so it's easier for me to rebase it onto this than for you to wait on it. When I open it, One thing to say clearly in the description, since reviewers on Windows will ask: losing the stencil plane is a real cost and not only a format rename. The title writes material numbers through the stencil plane of some depth targets and tests against them later, so on this host those passes read depth where they expect stencil. That's a known limit of this mapping and not something this PR should try to fix, but it's worth one line under what it does not do. I can't add a Windows pair. A Mac pair with a title from my port has to wait for its next rebase. |
|
Regression run for this PR on Windows / NVIDIA, since it has no Tested
this PR: Both runs started from the same state (the title's settings already saved, so no first-run screens). The PR's run is within the limits: 121 % of Not tested: the change itself: on Windows the host's D3D12 is a PE module, so the depth + stencil mapping is never switched on here (as the description says) and the run is a regression check only. D3DMetal and stencil behaviour there are not covered. AI use: Claude Code (Claude Opus 5.5) built the trees, made the runs on my PC and wrote this report; I asked for it to be posted. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
XCL PR #1649 — Windows / Intel Arc A770Clean head Tested
Tests covered forced native-host R32 resource, shader-view and depth-view mappings, including stencil views reading depth. Windows assertions covered D16S8-to-D24S8 mapping, stencil plane selection and format-query translation.
Workspace failures and skips
Not tested Apple D3DMetal/Wine, native-host detection and depth/stencil view creation on that backend, other GPUs, and retail title smoke runs. Failure attribution requires a matched main run. AI use T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
Apple's D3DMetal (macOS under CrossOver) is native code in no PE module: `class_for` already asks which module the host's first method is in, and gets none there. That is now kept in `gpu::shader::NATIVE_HOST_MEMORY` and logged once. Nothing reads it yet; the depth formats of such a host are the first use (next commit). The flag and its place are those of `mac-on-main-wip` (e97bc3a, "Mac host basics"), taken out on their own; the rest of that commit is not here. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…, on top of upstream's PC formats
Metal makes no depth-only view of a depth + stencil texture and no view in another depth
family than the texture's: its assertion ("failed assertion `Texture Creation`") ends the
process where a Windows driver takes or refuses the view. Upstream now makes depth buffers
typeless and reads them through R24_UNORM_X8 / R32_FLOAT_X8X24 views with stencil in plane 1
– that combination. On a native host (`device_x::depth_only`, XCL_DEPTH_STENCIL=1 restores
upstream's mapping) the override sits on upstream's functions:
- pc_resource_desc: R32G8X24 / R24G8 families (and the console's D16S8, which upstream
maps to R24G8) → R32_TYPELESS / D32_FLOAT / R32_FLOAT (`depth_only_format`).
- pc_view_format (pipelines' DSV formats, clear values, format queries) the same.
- pc_shader_view_format: any depth-family or stencil view of an R32-family resource → R32_FLOAT
(stencil views read the depth: the stencil plane is lost); of a 16-bit depth buffer → R16_UNORM.
- pc_depth_view_format: a DSV takes the depth format of the resource's family.
- XCL_TRACE_DEPTH_VIEWS=1 logs every view made of a depth-family resource, flushed.
Upstream's mappings of B5G5R5A1 / B4G4R4A4 targets and of the console's 116 / 117 are as
upstream has them (the local pc_format and view_format_for are gone).
Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
(cherry picked from commit 8fc0600)
`depth_only_format` takes both depth + stencil families to the R32 one, role for role, and leaves 16-bit depth and colour formats alone; off a native host the PC mapping is unchanged. The `device_x` part of `mac-on-main-wip` aaf191b; its `isa` tests are not here. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
…g runs everywhere `depth_only` is the process's: once a test has adopted a device of a native host, the tests of the PC's depth formats that run after it in the same process saw the depth-only mapping and failed (`console_depth_buffers_and_their_views_are_the_pcs`: (39, 2) for (44, 2); `console_formats_are_asked_as_the_pcs`: 40 for 45; CrossOver 26.3, D3DMetal, `hle::d3d12x:: --test-threads=1`). Alone they passed. A test now says which host it describes (`depth_only_for_test`, a thread-local in test builds only). The two tests of the PC's formats say "not a native host"; `depth_stencil_families_become_the_r32_family` checks both answers through the real functions (resource descriptions, pipeline and clear-value formats, shader views, depth views), so the native mapping is tested on Windows too, where no host turns it on. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
fcdb447 to
579e0be
Compare
|
First Windows (MSVC) build and run of this head (listed under Not tested). Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0 stable-x86_64-pc-windows-msvc, DXC 1.9.2609.5, debug build. Head 579e0be. Result: builds with MSVC; cargo test --workspace -- --test-threads=4: 1251 passed, 0 failed, 46 ignored. SKIPPED: 18 GPU tests for no wave64 (expected on this card); 2 debug-layer tests (no d3d12SDKLayers.dll). Not tested: a title run on Windows. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
# Conflicts: # crates/xcl/src/hle/d3d12x/real.rs
On a native host (D3DMetal) every depth + stencil family is depth only (xcl-dev#1649, merged here). Three tests of d3d12_check_feature_support compare XCL's answers with the host driver's for the PC's formats and failed there on D24S8 (FORMAT_INFO, FORMAT_SUPPORT 118 -> 45); they passed with XCL_DEPTH_STENCIL=1, which their fixture now sets: the PC mapping is what they test, the depth-only one is device_x's tests'. gpu_placed_console_depth_target_with_clear_value expects R24G8_TYPELESS; it now expects R32_TYPELESS where depth_only() (on main 6d12f58 it ends in Metal's texture assertion on this Mac instead).
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
NVIDIA test report for
|
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No open or merged PR maps the depth + stencil families to depth-only ones on a native (D3DMetal) host; AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
[removed by author]