Skip to content

ProjectScarlett, --graphics-profile series-s on an RX 6600: the 3D world stays black while 2D layers draw; packaged renders it on the same build #663

Backlog

Description

@1093i3511

Summary

With the Series S profile, ProjectScarlett reaches the world (the crash reports name the mission) but the 3D scene is black for the whole run. 2D layers are drawn: menus, loading-screen illustrations, intro credits and, in an earlier run, the HUD (vehicle notice, minimap). The packaged profile on the same build, the same shader caches and the same card draws the night scene: characters, street, car, palms, lights. In the world, Series S keeps the card about a quarter as busy as packaged.

Setup

  • RX 6600 (8 GB, 1002:73ff), RADV / Mesa 26.3.1, GE-Proton11-15, host profile section-import=substituted descriptor-bytes=64/16.
  • Build: 6d4f1cd7 + d3d12: keep a title's page protection across lazy publication #647 (0bde5bb3). Current main (1b4ed472, c1139ab2) stops at the start menu on this card (Who's working on what (read before starting) #533 issuecomment-7354129812), so I used the tree that others report reaching the world with.
  • Series S launched as tuxbox.py run --graphics-profile series-s. The <prefix>-series-s the profile uses is a Series S prefix I made earlier from a copy of the packaged one (the profile then sets ConsoleMode=96 as usual; crash reports say Conole Type: Lockhart). It has run Series S many times, so the title's Series S pipeline set is built. Packaged: the same packaged prefix without the profile. Both share one tuxbox_shader_cache and RADV cache; defaults otherwise, warm caches, MESA_SHADER_CACHE_MAX_SIZE=8G.

What differs (runs of 8 to 15 minutes, same build)

Series S Packaged
World reached (allocation ledger jumps to >2,000 BLAS) 3:50–5:04 after start 5:12–5:43
Picture in the world black 3D; 2D layers drawn night scene drawn (some artefacts below)
Internal render target (stencil plane) 1280x720 2560x1440
Output the title presents 3840x2160 (+ a 1920x1080 plane) 3840x2160
Card busy in the world (gpu_busy_percent, 10 s samples) ~5 % (peak 35) ~20 % (peak 83)
Presents per 10 s, menus → world 320–400 → 70–170 320–400 → 110–130
Empty stand-ins (overlay) 7 7
Unsupported programs (overlay) 7 7
Peak VRAM / GTT of the game 6.6 / 4.1 GB 6.9 / 5.0 GB
End without a time limit title abort on full VRAM at 830–896 s, no GPU fault #603 TCP fault at 836 s

Per-pipeline GPU time in the world (TUXBOX_GPU_TIMING=1)

One 8-minute run per profile, back to back, TUXBOX_OVERLAY=1. "World" starts at the first timing window with more than 500 pipelines. Values are GPU time per world second, summed over each window's top 20 with a small helper script.

Series S Packaged
World windows 17 (201 s) 15 (174 s)
Timed GPU time 19.6 ms per s 27.9 ms per s
Pipelines timed per window ~1,200 ~1,200
  • The GPU is nearly idle in both. Series S does run ~1,200 pipelines per window in the world, so the 3D passes are recorded and executed. They are not skipped.
  • The passes both profiles share scale like the render size. The largest compute passes in packaged take 2–4x the time in Series S (CS 440f6eec 1.61 vs 0.47 ms/s, CS 715c944b 1.17 vs 0.25, CS 8ae931bd 0.82 vs 0.29). That is about the 2560x1440 to 1280x720 pixel ratio (4x).
  • Half of Series S's top-20 time goes to programs that packaged never times. Their names never appear in the packaged log:
Pipeline (Series S only) GPU time Calls Request
CS 59903446 1.22 ms/s (largest in Series S) 0.2/s 599034461240d93b21766c0aa0b23bae88a6e120e1b2413fe3ece06ac1ff9ef7, 110,084 bytes
PS 89f6b548 + MS 5f6ec27e 0.66 ms/s 24.8/s
CS 3e1c765c 0.42 ms/s 0.2/s 3e1c765c4c47ea15173a621250cb6d757330fb354d0f63e9093afb499a119614, 76,996 bytes
CS aedd1c0e 0.36 ms/s 0.2/s aedd1c0eb7fcc59fe5ddf44be45b05dc3c2598ff95ef45b45063d141e889878c, 54,264 bytes
CS 825f5638 0.35 ms/s 0.2/s 825f56381cacdb13c9624b2608b34ff87a26de200ebc48a83de6f0983e9ca282, 55,168 bytes
CS 20b744d5 0.31 ms/s 0.2/s 20b744d5141f1a041047d052f62c8ecf1e4c9acb658dceacbcd10a98ff7e3a02, 329,444 bytes

The title builds a separate pipeline set in Series S mode (#618), so these are presumably that set's equivalents of packaged passes. Because they translate and run without errors but only Series S draws black, they are where I'd look first: a program that compiles and runs but computes wrong values (for example zero exposure or zero lighting) would give exactly this picture.

How both profiles were prepared (possibly the cause)

I found no efficient way to test Series X (the packaged settings) and Series S side by side on one host. --graphics-profile series-s copies the whole prefix (about 24 GiB here), and each prefix needs its own preparation, which takes 40–90 minutes here after a translator or d3d12_xs change.

So I prepare once and share the result:

  • Only the Series S prefix is prepared.
  • The packaged prefix runs with --no-shader-prep.
  • Both prefixes link the same tuxbox_shader_cache, tuxbox_pipeline_recipes and RADV cache.

The title builds a separate pipeline set in Series S mode. A preparation and pipeline records that serve both targets may be exactly what goes wrong for one of them. If there is a supported way to keep both targets apart, or a check that tells whether a cache entry belongs to the other console model, I'll rerun Series S on a clean, separately prepared prefix.

Ruled out so far

  • Empty stand-ins and unsupported shaders: both profiles show the same 7 empty stand-ins and 7 unsupported programs, and packaged draws with them. On fb17e160 the 64 unsupported programs were also identical between the two profiles.
  • Memory pressure: Series S uses less VRAM and GTT than packaged, and no VRAM was evicted in either run.
  • Wine virtual desktop: an earlier Series S prefix had one (black intro, stalled audio). It's removed since 1 Dec.
  • The title's settings.xml: the title ignores resolutionFullscreen (it still presents 3840x2160). rtDynamicShadows=false doesn't change the black world.
  • Frame pacing: the frame logs (TUXBOX_FRAME_LOG) of both profiles look alike: median ~31 ms, the slow frames in submits while GPU queues are held at title memory waits. Series S is not slower. It just does much less GPU work in the world.

Earlier, on fb17e160, the Series S intro scene was drawn once but overexposed (almost white); packaged was correctly dark there.

Questions

  • Does Series S draw the world for anyone? @csj0oe ran the profile on an RX 7600 for graphics-profile: keep the Series S prefix between launches #618. If it renders there, this is specific to RDNA2 or 8 GB.
  • Is there a way to compare one of the Series S-only programs above against a reference (the shader harness on recorded inputs, or TUXBOX_SKIP_SHADERS on one of them to see whether the picture changes)? I can run Series S and packaged back to back with whatever logging helps.

I can provide logs, the frame and GPU load samples, and the timing output privately if they help.

Packaged artefacts, for completeness: floating dark rectangles in the sky and on facades, flat boxy buildings that fill in later, and the glare of one light changing between blue and red from one shot to the next.

Activity

  1. brcly commented on Dec 2, 2026

    @brcly
    Owner

    Thanks, this is a thorough comparison. The Series S-only compute programs you list (CS 59903446, 3e1c765c, aedd1c0e, 825f5638 and the rest) are a good lead for the black 3D scene. Current main stopping at the start menu on your card is #656 (queue page mappings refused on hosts with section-import=substituted). We're fixing that now. Once it's in, could you repeat the Series S vs packaged comparison on main? That tells us whether the black world is still there on the current renderer.

  2. 1093i3511 commented on Dec 2, 2026

    @1093i3511
    ContributorAuthor

    Thanks, will do. Once the fix is in main, I'll run Series S through --graphics-profile series-s and packaged on the same build, back to back, 8 minutes each, with the same TUXBOX_GPU_TIMING=1 comparison. The earliest I can do it is tomorrow (3 Dec) from 15:00 CET.

    For reference, the line my 1b4ed472 and c1139ab2 runs stopped on was cannot order buffer and texture accesses: HRESULT(0x80004001) (the handoffs::plan refusal from #661). Earlier in the same log the provider says game memory is copied for the GPU: this host cannot import it directly, so it may share the cause with #656. I'll report which line, if any, the new build stops on.

  3. turboheadcrab commented on Dec 2, 2026

    @turboheadcrab

    Written with a coding agent (Claude Code), which read the logs of my runs and compared the shader hashes against TuxBox's own evidence files. I played the runs.

    Reproduced on current main with RDNA4: with --graphics-profile series-s, the 3D world is black and 2D draws (a tip hint appeared once in the world). The log points at the FidelityFX 4 upscaler: one of its shaders fails to translate and runs as a null pipeline.

    Setup

    RX 9070 XT (16 GB, RDNA4), RADV / Mesa 26.3.1, kernel 7.3.5, GE-Proton11-15. TuxBox 9494fdb8. The Series S prefix is a fresh copy of my packaged prefix, made by --graphics-profile series-s; caches are warm from packaged runs, and the run compiled 35 new programs. TUXBOX_GPU_TIMING=1, offline as usual.

    What the log shows (measured)

    1. The planes are presented in the expected order: present plane 0 of 2 1920x1080 (the scene) and present plane 1 of 2 3840x2160 (the interface). present/compose.rs draws layer 0 opaque and blends layer 1 over it, so the black world isn't a composition problem.

    2. The Series S-only programs from the table above are the FidelityFX 4 upscaler. All five compile and run in the world here (CS 59903446 3.7 ms per call, 3e1c765c 1.2, 825f5638 0.9, 20b744d5 0.9, aedd1c0e 0.8). Three of them are in this repo's evidence:

      • 59903446 is first_compute_pipeline.dxbc_sha256 in evidence/providers/scarlett-fidelityfx-runtime.json, a full match.
      • 3e1c765c and 20b744d5 are source_sha256 entries in evidence/providers/fidelityfx-tensors.json.
    3. One upscaler shader doesn't translate and is replaced by a null pipeline:

      Xbox shader 3727a000d3ee4cefab693d5f233e49887b97d40819d412a72f37c21869b1711d: xshader failed (65): unsupported FSPX compute register layout
      vkd3d_compile_shader_stage: Failed to compile shader, vkd3d result -4.  (Invalid shader bytecode)
      d3d12_xs: CS 3727a000 request=original bytes=24108 rejected by the driver: 0x80004005
      d3d12_xs: substituted null compute pipeline for an untranslated shader (8 so far)
      

      The title's upscaler code logs DeserializeComputePipelineStateX FAILED hr=0x80004001 … falling back to NewBE for all 29 of its passes (FFX_FSR4_PASS_0 to _26, FFX_FSR4_RCAS_PASS, FFX_FSR4_SPD_AUTOEXPOSURE_PASS). For 28 of them the fallback works. 3727a000's DXBC is inside amd_fidelityfx_upscaler_xbox.dll at offset 0x9fe90 (its container hash, ca8c8cf4…, sits at 0x9fe94). That's the shader docs/SHADERS.md names as the one the translator can't resolve yet ("shader 0x9fe90 read lane 31 of register v1"). Today it fails earlier, on the register layout. It's created right next to the FFX_FSR4_SPD_AUTOEXPOSURE_PASS line.

    Theory (not yet tested)

    3727a000 is the upscaler's auto-exposure pass (SPD). With it as a null pipeline, the exposure it writes stays zero, and the upscaled 1920x1080 scene comes out black, while the interface plane, which doesn't go through the upscaler, still draws. That fits the black world, the 2D layers, and the "zero exposure" idea in the report. It's the 29th shader that docs/SHADERS.md says doesn't translate yet, so translating it may be all Series S needs.

    Two things would confirm it:

    • Which pass the shader at 0x9fe90 is. From its position next to the log line it's probably the SPD auto-exposure pass, but that's only an inference from the log order.
    • Whether the exposure target stays zero. A capture or readback in Series S.

    Why only Series S

    On this build the title's upscaler picker chooses AMD FidelityFX only on Series S, and its own upscaler otherwise. That's documented by another project (VIctory-xmem, the picker at +0x7e93f0). So the normal profile never runs these passes. On the same PC, VIctory-xmem shows the same black Series S world, and renders it once the picker is forced to the title's own upscaler or AMD's PC FSR 4 DLL serves the calls. That fits the upscaler being where Series S breaks.

    Frame rate

    The world presents 1–2 frames every 12–14 s on this card (~1,480 pipelines, 3.6–6.8 ms of timed GPU work per second), the same as packaged runs here. The black picture isn't from the run stalling.

    I can rerun Series S with any extra tracing that helps identify 3727a000 or check the exposure value.

  4. 1093i3511 commented on Dec 3, 2026

    @1093i3511
    ContributorAuthor

    @turboheadcrab Thanks, this is a big step. The FidelityFX 4 auto-exposure pass as a null pipeline explains the black world, and it may also explain the overexposed Series S scene I saw on an earlier build.

    I'm building 106120ca + #667 now and will run the Series S vs packaged pair from above on it. In the Series S log I'll check for the same DeserializeComputePipelineStateX FAILED lines for FFX_FSR4_* and for shader 3727a000, so we know whether RDNA2 shows the same pattern. I'll also look at how VIctory-xmem forces the upscaler picker, as a cross-check of the theory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions