startup-runtime: video plays with wrong colours #1131
Open
opened 2026-11-24 01:45:26 +00:00 by denn0x
·
12 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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
R0Y00/Xbox2Windows#1131
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T01:45:26Z.
Problem
With
X2W_XMEM_GPU_MIRROR=1a YUV video is readable (before, it was solid green from all-zero planes), but itscolours are wrong. Likely candidates: chroma plane layout or offset, plane format (R8 vs R8G8), or the
colour-conversion constants seen by the translated pixel shader.
Done when
A synthetic NV12/planar YUV fixture renders through the same translated path with the expected colours, and the
fix is in the stand-in or translator.
Context:
docs/startup-runtime.md(#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:09:09Z.
I reproduced a missing chroma plane on #1135 (
e658fe24) with a source-built 8×4 NV12 image. XG reported one plane, accepted the Y write, and returnedE_INVALIDARGfor UV. The startup draw uploader also copied only subresource zero.The candidate gives a single NV12 image two desktop copy footprints and uploads both. A source-built draw with separate R8 and R8G8 views compared all 32 RGBA pixels against an integer CPU reference, then repeated with swapped U/V bytes. Both cases matched on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), Windows 26200.9974, debug layer off. Invalid plane and short UV stride cases returned
E_INVALIDARG. An experimental NV12 array produced mismatches, so the candidate explicitly reports it as unsupported. Candidate and testsctest --preset release --no-tests=error -R '^startup_nv12_draw_' -Vpassed 2/2. The fixture uses a source-built conversion shader. To connect this finding to the video, could the reporter share just the texture format, dimensions, plane index and SRV format at the luma/chroma binds? That distinguishes an NV12 image from separate R8/R8G8 resources. The issue remains open for that comparison.Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T04:01:45Z.
A second cause, in the translator rather than the uploader: the video pixel shader loads its plane descriptors with wide scalar loads.
gfx2hlsl.descriptor()gave every descriptor in one load the load's base offset, so the descriptor at table offset 64 was merged into the one at 32 and two planes were sampled from the same SRV.With
16ac9a22(on #1135) the retranslated shader declares four SRVs at offsets 64, 32, 96 and 128. In my local run the intro video then plays in plausible colours. Cached translations of that shader need regenerating, because the old.hlslkeeps the merged binding.This and #1177 look complementary: #1177 makes sure the chroma plane is uploaded, and this change makes the shader read it from its own SRV. I have not isolated which one is sufficient on its own for the source-built NV12 case. My local runtime build does not have #1177 merged yet.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T04:19:29Z.
Open for one AMD or Intel GPU tester to claim. Please reply with the adapter you can test. The RTX 4060 Laptop and WARP plane-upload checks are already covered above. The startup team will handle the executable retest.
Use the source-built 8×4 NV12 fixture at #1177, commit
7dcdfdcd. From the configured Release build, runctest --preset release --no-tests=error -R '^startup_nv12_draw_' -V. Report the commit, adapter, driver, Windows build, debug-layer setting, hardware outcome and first differing pixel if any. Include the swapped-U/V control and any capability skip separately. The expected result is a match to each control’s own CPU reference at all 32 pixels.This result tests plane upload on another adapter. The wide scalar descriptor fix at
16ac9a22needs its own comparison with regenerated translations; follow the author’s report for that work.Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-24T04:44:55Z.
I can provide an Intel Arc A770 retest of the source-built NV12 plane-upload fixture when I’m back at that desktop. Windows 11 Pro build 26300; Intel driver 32.0.101.9175 was installed, and I’ll verify the active driver after the required full shutdown/power-on before testing. I’m preparing the pinned Release build and will report the exact revision, adapter, driver, debug-layer state, normal and swapped-U/V results, and any capability skip or first mismatch. This is the synthetic fixture only; I’m not claiming a main-executable retest. Desktop access is pending, so please don’t hold up anyone who can test sooner.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T05:02:09Z.
Thanks for offering the Arc A770 retest. Use main at or after #1177 (
4b2d84e9) and build the Release targets startup_nv12_draw and d3d12_xs_shim.Please include the normal readback and swapped-U/V control from that output and record any capability skip separately. Other adapters can test in parallel.
Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-24T05:05:19Z.
Thanks — I’ll use the #1177 merge commit
4b2d84e91af0efe7cea24b840c711b3824a39cf0, buildstartup_nv12_drawandd3d12_xs_shimin Release, and run^startup_nv12_draw_hardware$. I’ve updated the collection instructions to your reply. The A770 hardware run is still pending desktop access; I’ll post both normal and swapped-U/V readbacks with the verified active driver and any capability skip.Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-24T06:01:29Z.
Additional NV12 hardware result — RTX 2070 Max-Q — 24 November 2026
I ran the source-built fixture on my Dell G7 7500 laptop while away from the desktop. The Intel Arc A770 run is still pending.
4b2d84e91af0efe7cea24b840c711b3824a39cf0(#1177 merge), obtained as a source archive.32.0.15.8129, captured with this run.26300.10075from the earlier inventory of this laptop; the OS build was not recaptured in this bundle.19.44.35230.0, Windows SDK10.0.26100.0. Bothstartup_nv12_drawandd3d12_xs_shimbuilt successfully.Relevant full verbose output:
Result: 1 passed, 0 failed, 0 skipped; CTest exit code 0. Both the normal and swapped-U/V controls matched their own CPU references at all 32 pixels. No first differing pixel or capability skip occurred.
This is additional NVIDIA evidence for the synthetic plane-upload fixture. It does not test the translated video shader/descriptor fix or establish game startup or gameplay.
AI-assisted setup and report preparation; the build and hardware test were executed locally on my laptop.
Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-24T06:42:24Z.
16ac9a22is not onmain, so a build of plainmainstill merges two of the video planes.da5884af(four commits).16ac9a22was authored at 04:00:46Z on top ofda5884afand is the tip ofdenn0x:startup/runtime-stand-ins, so it was pushed after the merge. The commits API lists no pull request for it,git merge-base --is-ancestor 16ac9a22 origin/mainfails, andtests/startup_translator_check.pyis absent frommain.mainat99cde8d6:tools/startup/gfx2hlsl.py --pendingon the request for the video pixel shader (threeimage_samples, two of them through ones_load_dwordx16) writes a manifest withtex2d table 0 32andtex2d table 0 96and no entry at 64, and the HLSL samples the sameTexture2Dtwice.descriptor()there still returnss[1], s[2].16ac9a22, made independently before I found that commit), the manifest hastex2d table 0 64,32and96, and after regenerating the cached translations the intro video shows plausible colours here. Host: Linux, Wine with vkd3d-proton, NVIDIA RTX 4070 Ti SUPER, so this is a translation-layer observation, not a Windows result.@denn0x, could you open a follow-up PR with
16ac9a22and its test? It is your commit; I would rather not duplicate it. Until it lands, runs frommainwill keep reporting wrong colours whatever the plane upload does.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T06:47:29Z.
The reopen/retranslate check explains why the #1177 source-built NV12 fixture can pass while the translated startup shader still binds two samples to the same view. Update: #1286 now carries denn0x's original correction and synthetic controls. Please put any independent review or binding comparisons on that PR so the fix stays in one place. The Intel NV12 retest remains useful as independent coverage.
Imported from R0Y00/Xbox2Windows. Originally posted by Alexofbulgaria on 2026-11-24T14:02:35Z.
Requested Intel Arc A770 NV12 retest — 24 November 2026
The promised A770 hardware run is complete, following the maintainer’s instructions.
4b2d84e91af0efe7cea24b840c711b3824a39cf0, the #1177 merge commit, verified withgit rev-parse HEAD.26300.9974.32.0.101.9175, verified after the required full shutdown/power-on.19.44.35230.0, CMake3.31.6-msvc6, Windows SDK10.0.26100.0, DXC1.9.2602.17. Both requested targets built successfully.Commands:
Relevant complete verbose output:
Result: 1 passed, 0 failed, 0 skipped; CTest exit code 0. Normal UV and swapped U/V each matched their own CPU reference at all 32 pixels. There is no first differing pixel or capability skip to report. Both Release build targets completed with exit 0; no collection step timed out.
Configuration note: CMake warned that the Python-driven tests were disabled because the configured
out/pe-env/Scripts/python.exewas absent. Those tests were not run. The selected NV12 hardware CTest was registered, executed and passed; its full verbose log supplies the adapter and both pixel results, because JUnit text may be truncated.This adds independent Intel evidence for the source-built single-image NV12 plane-upload fixture. It does not retest the separate descriptor/translated-shader correction in #1286 or establish main-executable startup or gameplay. My earlier RTX 2070 Max-Q result covered the same pinned fixture on NVIDIA.
AI-assisted setup, log verification and report preparation; the build and hardware test were executed locally on my A770 desktop.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T14:23:35Z.
Thanks for the Intel Arc A770 retest. At the #1177 merge commit, both synthetic UV and VU paths matched all 32 pixels on driver 32.0.101.9175, with no CTest skip. This fills the requested Intel check for the source-built fixture. For any remaining playback-color report, please link a current build that includes #1286 and report the translated binding or the first visible mismatch separately.
Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T19:18:00Z.
Polaris NV12 hardware retest following the requested fixture procedure.
ddeaa5ebd11cfc03248c72e5d0dbbe7d005bd20b, Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with/EHa, Windows SDK 10.0.26100.Both adapters matched all 32 pixels in each chroma order (UV and swapped VU), with 0 mismatches per case. The invalid plane and short pitch were refused as expected. Both CTests passed, with zero failures and zero skips.
Source-built fixtures only. Codex assisted with the build, test runs, and reporting.