RX 9070 XT (Fedora): neon green car paint, slow texture streaming, and two fixes that may be useful upstream #37

Open
opened 2026-12-01 07:41:52 +00:00 by github-bot · 6 comments
Owner

@⁠luk3h on GitHub · 2026-11-30 17:35 UTC · original

Thanks for xmem. On my machine it is the first VIctory build that keeps VRAM inside its budget. I get 25–34 fps at 1080p with RT on, against about 14 fps on a non-xmem fork.

System

GPU RX 9070 XT 16 GB (RADV GFX1201, xmem's patched Mesa 26.3.1)
CPU / RAM Ryzen 7 9800X3D / 32 GB
OS Fedora 44, kernel 7.3.4
Runtime GE-Proton11-14 (auto-detected by env.sh)
Build main at cd811c1, plus the local commits listed below
Settings Series X, RT on (default), VICTORY_OUTPUT=1920x1080 and 2560x1440

Issues

1. Car paint glows neon green. Parts of some cars (bonnet, side panels) glow bright green, mostly at dusk. Screenshots will follow in a comment.

2. Texture pop-in and long-blurry textures. This happens even at 1080p, where VRAM sits at 10–11.5 of 13.85 GB. The overlay's Tex queue stays at 100–370 due while driving. The log shows textures picked by index: the card has no room for more; they wait once, about 5 minutes in. At 1440p, VRAM reaches 12.45 of 13.58 GB and the queue reaches about 630.

3. Lighting artefacts with RT on. Dark blocky patches and purple/blue smears appear on roads (toll plaza screenshot will follow). The default VICTORY_AMBIENT_RT band (0.7, 1.5) is active.

4. "Waves" coming off the player character while moving. They're hard to see in a still frame.

The log (local/run/play-20261130-172454.log) will follow in a comment. Besides the warnings above, its only other warnings are the usual 29 pipeline creation method that is not implemented lines.

Local changes I tested with (patches will follow in a comment if useful)

I made these to fix problems I saw first. Two of them might be worth having upstream.

  • Mesa nir_lower_memory_model: image_heap_* and bindless_image_* accesses get nir_var_image modes, so loads after a barrier are made ACCESS_COHERENT. Without it, cutscene faces were wrong on RADV. The fork I had used before fixed it by running vkd3d-proton without VK_EXT_descriptor_heap, but xmem can't do that: without descriptor heaps vkd3d-proton fails with no view heap of 2097152 views. Faces are better with this patch, though not perfect.
  • Translator group coherence: typed UAV buffer loads in compute programs with barriers keep their handle written. This is a port of VIctory-AMD 877978e1.
  • Neutral stand-in in unmake and the waiting path of descriptor/host.rs, as make already does. A null view decodes as green in YCoCg/BC5 textures, and trees flashed green while they streamed in.
  • These don't affect rendering: an F7 save export/import page, and DisableHidraw=1 in the prefix so a DualSense shows up as an XInput pad.

I haven't checked whether issues 1–4 also happen on plain cd811c1. I can do that if it helps.

**@⁠luk3h** on GitHub · 2026-11-30 17:35 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/37) Thanks for xmem. On my machine it is the first VIctory build that keeps VRAM inside its budget. I get 25–34 fps at 1080p with RT on, against about 14 fps on a non-xmem fork. ## System | | | |---|---| | GPU | RX 9070 XT 16 GB (RADV GFX1201, xmem's patched Mesa 26.3.1) | | CPU / RAM | Ryzen 7 9800X3D / 32 GB | | OS | Fedora 44, kernel 7.3.4 | | Runtime | GE-Proton11-14 (auto-detected by `env.sh`) | | Build | `main` at `cd811c1`, plus the local commits listed below | | Settings | Series X, RT on (default), `VICTORY_OUTPUT=1920x1080` and 2560x1440 | ## Issues **1. Car paint glows neon green.** Parts of some cars (bonnet, side panels) glow bright green, mostly at dusk. Screenshots will follow in a comment. **2. Texture pop-in and long-blurry textures.** This happens even at 1080p, where VRAM sits at 10–11.5 of 13.85 GB. The overlay's *Tex queue* stays at 100–370 due while driving. The log shows `textures picked by index: the card has no room for more; they wait` once, about 5 minutes in. At 1440p, VRAM reaches 12.45 of 13.58 GB and the queue reaches about 630. **3. Lighting artefacts with RT on.** Dark blocky patches and purple/blue smears appear on roads (toll plaza screenshot will follow). The default `VICTORY_AMBIENT_RT` band (0.7, 1.5) is active. **4. "Waves" coming off the player character** while moving. They're hard to see in a still frame. The log (`local/run/play-20261130-172454.log`) will follow in a comment. Besides the warnings above, its only other warnings are the usual 29 `pipeline creation method that is not implemented` lines. ## Local changes I tested with (patches will follow in a comment if useful) I made these to fix problems I saw first. Two of them might be worth having upstream. - **Mesa `nir_lower_memory_model`:** `image_heap_*` and `bindless_image_*` accesses get `nir_var_image` modes, so loads after a barrier are made `ACCESS_COHERENT`. Without it, cutscene faces were wrong on RADV. The fork I had used before fixed it by running vkd3d-proton without `VK_EXT_descriptor_heap`, but xmem can't do that: without descriptor heaps vkd3d-proton fails with `no view heap of 2097152 views`. Faces are better with this patch, though not perfect. - **Translator group coherence:** typed UAV buffer loads in compute programs with barriers keep their handle written. This is a port of VIctory-AMD `877978e1`. - **Neutral stand-in in `unmake` and the waiting path** of `descriptor/host.rs`, as `make` already does. A null view decodes as green in YCoCg/BC5 textures, and trees flashed green while they streamed in. - These don't affect rendering: an F7 save export/import page, and `DisableHidraw=1` in the prefix so a DualSense shows up as an XInput pad. I haven't checked whether issues 1–4 also happen on plain `cd811c1`. I can do that if it helps.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:41:52 +00:00
Author
Owner

@⁠Anzymanz on GitHub · 2026-12-02 09:11 UTC · original

Written with Claude Code.

On item 2, one data point from the same card (RX 9070 XT 16 GB, Mesa 26.3.1 + this repo's patch, GE-Proton, 1440p render, RT off), on a tree branched from xmem around 29 Nov, where VICTORY_TEXTURE_ROOM_PERCENT was the only limit (90 by default then). At 90 the room limit held back new textures about 2,000 times a second in heavy play while the kernel evicted nothing; at 97 none were held back, nothing was evicted, and we could not resolve any frame cost. We have run 97 since.

Current main has a second limit, VICTORY_TEXTURE_ROOM_CAP_PERCENT (92 unless set), which counts all card memory in use; we have not tested that one, and its comment warns that too high stalls frames. So the thing to try is VICTORY_TEXTURE_ROOM_PERCENT=97 first, then the cap a few points up, watching the "they wait" line and the Tex queue.

**@⁠Anzymanz** on GitHub · 2026-12-02 09:11 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/37#issuecomment-7340515151) Written with Claude Code. On item 2, one data point from the same card (RX 9070 XT 16 GB, Mesa 26.3.1 + this repo's patch, GE-Proton, 1440p render, RT off), on a tree branched from xmem around 29 Nov, where `VICTORY_TEXTURE_ROOM_PERCENT` was the only limit (90 by default then). At 90 the room limit held back new textures about 2,000 times a second in heavy play while the kernel evicted nothing; at 97 none were held back, nothing was evicted, and we could not resolve any frame cost. We have run 97 since. Current main has a second limit, `VICTORY_TEXTURE_ROOM_CAP_PERCENT` (92 unless set), which counts all card memory in use; we have not tested that one, and its comment warns that too high stalls frames. So the thing to try is `VICTORY_TEXTURE_ROOM_PERCENT=97` first, then the cap a few points up, watching the "they wait" line and the Tex queue.
Author
Owner

@⁠Coldtrain on GitHub · 2026-12-03 07:39 UTC · original

hahah i found the VICTORY_TEXTURE_ROOM_PERCENT resolve a few days ago too, 97 set for me as well. reduced black faces, but their is still most likely further work to be done removing stale textures rather then just queueing or stopping texture admission altogether based on ram usage....

Also this tree issue, were they very bright? I am trying to resolve a similar issue where trees further away display bright neon green low poly, when getting closer they dissapear, when close enough render correctly.

**@⁠Coldtrain** on GitHub · 2026-12-03 07:39 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/37#issuecomment-7371256737) hahah i found the VICTORY_TEXTURE_ROOM_PERCENT resolve a few days ago too, 97 set for me as well. reduced black faces, but their is still most likely further work to be done removing stale textures rather then just queueing or stopping texture admission altogether based on ram usage.... Also this tree issue, were they very bright? I am trying to resolve a similar issue where trees further away display bright neon green low poly, when getting closer they dissapear, when close enough render correctly.
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-12-03 17:41 UTC · original

also meet pipeline creation method that is not implemented

**@⁠maple-quartz18** on GitHub · 2026-12-03 17:41 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/37#issuecomment-7386909907) also meet pipeline creation method that is not implemented
Author
Owner

@⁠t-jonesy on GitHub · 2026-12-05 14:19 UTC · original

Data from another RX 9070 XT (game 1.0.2.1, Series X, 4K output with FSR 4 Performance, ray tracing on), on the downtown route of #554 at noon, with a fork build whose unmake and null_for paths are still main's (no #557). We see the flashing lime canopies too, and the mechanism matches what #557 describes. Here is what our counters and screenshots show, and what we have tried.

What it looks like.

  • Only tree canopies (leaf cards) of one broadleaf species turn lime green. Trunks, the lower foliage of the same tree, grass and buildings stay normal.
  • The leaf shape, alpha cut-out and sun/shadow shading are kept. Only the base colour is replaced: about (85-120, 162-190, 30-68) sRGB, hue about 95°, R/G about 0.5.
  • Several trees of that species go green in the same frame (up to 5 in one shot). That points at one shared material slot, not one draw.
  • It lasts one frame. In 75 screenshots taken about 45 s apart, 5 show it (5 of 15 runs), never twice in a row. A video of an earlier build shows it for exactly one frame during a LOD cross-fade.
  • It happens with and without every switch we varied in those runs, so it is not one of our changes.

What the counters show at those moments. Per 5 s, all through the drive and in every run:

  • 6k-17k 2D/array slots made null by HostHeap::unmake as stale (a newer view of their memory);
  • 8k-26k other 2D views written null with no host copy (null_for).

No spike lines up with the shots; it is a steady background. We have no per-slot count of how long a stale-unmade slot stays null; the one-frame duration comes from the video. Our reading: a tree LOD swap binds such a slot in the frame before it is made again, reads zeros, and the foliage shader's own channel unpacking turns (0,0,0,0) into this lime.

Ruled out for these canopies:

  • the stand-ins of the waiting paths: those show grey, and 0 of them were null;
  • debug colours (wrong hue);
  • alias and stale placed views (0 lost, 0 stale);
  • our residency and pacing switches (the green shows without them);
  • a wrong format or swizzle decode. That would last as long as the view does, not one frame, and would not hit a whole species at once.

What we tried (fork builds):

  1. #557's change (neutral texture for unmade/null 2D views, with its format gate), plus a debug mode that colours those slots yellow. If this is the path, lime should turn yellow (or grey without the debug colour).
  2. Keep the last good view. On a stale unmake, the slot keeps its last good view until it is made again, instead of getting null or neutral. That is the idea behind #503 applied to the stale path. Bounds:
    • at most 60 frames;
    • only while a quick fingerprint of the memory's first 4 KiB still matches what was uploaded;
    • only while the memory stays mapped.

Result so far: inconclusive. In a live A/B/A session (20 shots per 60 s phase), the share of shots with more than 300 lime pixels was:

arm shots with >300 lime pixels
none 7 of 100
#557 + yellow debug 4 of 40
#557 + keep view 2 of 40

But our pixel rule also matches sunlit foliage at noon, so these counts don't separate the bug from real green leaves. We need to look at the flagged shots by eye before saying more.

The other green from this issue, a whole tree at medium distance staying lime until you get close, is a different path. deebsy's #557 comments describe it: a partly arrived copy exposes levels whose pages are not there yet. We have not looked at that one.

**@⁠t-jonesy** on GitHub · 2026-12-05 14:19 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/37#issuecomment-7439476691) Data from another RX 9070 XT (game 1.0.2.1, Series X, 4K output with FSR 4 Performance, ray tracing on), on the `downtown` route of #554 at noon, with a fork build whose `unmake` and `null_for` paths are still main's (no #557). We see the flashing lime canopies too, and the mechanism matches what #557 describes. Here is what our counters and screenshots show, and what we have tried. **What it looks like.** - Only tree canopies (leaf cards) of one broadleaf species turn lime green. Trunks, the lower foliage of the same tree, grass and buildings stay normal. - The leaf shape, alpha cut-out and sun/shadow shading are kept. Only the base colour is replaced: about (85-120, 162-190, 30-68) sRGB, hue about 95°, R/G about 0.5. - Several trees of that species go green in the same frame (up to 5 in one shot). That points at one shared material slot, not one draw. - It lasts one frame. In 75 screenshots taken about 45 s apart, 5 show it (5 of 15 runs), never twice in a row. A video of an earlier build shows it for exactly one frame during a LOD cross-fade. - It happens with and without every switch we varied in those runs, so it is not one of our changes. **What the counters show at those moments.** Per 5 s, all through the drive and in every run: - 6k-17k 2D/array slots made null by `HostHeap::unmake` as stale (a newer view of their memory); - 8k-26k other 2D views written null with no host copy (`null_for`). No spike lines up with the shots; it is a steady background. We have no per-slot count of how long a stale-unmade slot stays null; the one-frame duration comes from the video. Our reading: a tree LOD swap binds such a slot in the frame before it is made again, reads zeros, and the foliage shader's own channel unpacking turns (0,0,0,0) into this lime. **Ruled out** for these canopies: - the stand-ins of the waiting paths: those show grey, and 0 of them were null; - debug colours (wrong hue); - alias and stale placed views (0 lost, 0 stale); - our residency and pacing switches (the green shows without them); - a wrong format or swizzle decode. That would last as long as the view does, not one frame, and would not hit a whole species at once. **What we tried (fork builds):** 1. **#557's change** (neutral texture for unmade/null 2D views, with its format gate), plus a debug mode that colours those slots yellow. If this is the path, lime should turn yellow (or grey without the debug colour). 2. **Keep the last good view.** On a stale unmake, the slot keeps its last good view until it is made again, instead of getting null or neutral. That is the idea behind #503 applied to the stale path. Bounds: - at most 60 frames; - only while a quick fingerprint of the memory's first 4 KiB still matches what was uploaded; - only while the memory stays mapped. **Result so far: inconclusive.** In a live A/B/A session (20 shots per 60 s phase), the share of shots with more than 300 lime pixels was: | arm | shots with >300 lime pixels | |---|---| | none | 7 of 100 | | #557 + yellow debug | 4 of 40 | | #557 + keep view | 2 of 40 | But our pixel rule also matches sunlit foliage at noon, so these counts don't separate the bug from real green leaves. We need to look at the flagged shots by eye before saying more. The other green from this issue, a whole tree at medium distance staying lime until you get close, is a different path. deebsy's #557 comments describe it: a partly arrived copy exposes levels whose pages are not there yet. We have not looked at that one.
Author
Owner

@⁠t-jonesy on GitHub · 2026-12-05 16:03 UTC · original

Correction to my comment above: the null-slot explanation was wrong, at least for our fork.

We tested it live today with a person driving past the same trees (RX 9070 XT, downtown at noon, switching settings in-game about once a minute):

  • Showing a neutral texture instead of null for stale or unmade 2D slots: the lime canopies were still there.
  • Keeping the stale slot's last good view: still there.
  • Making every such slot bright yellow: we saw yellow elsewhere, but never on the trees. So those slots are not the canopies.
  • Restricting keep-old to main's rule (never keep the view of a different texture while the new upload is pending): the lime went away. Switching back to our wider rule brought it back.

So on our fork the lime came from our own keep-old change, which also kept views of another texture. Most likely a green-looking normal map was shown in a leaf albedo slot for a frame or two. Our channel-class check let it through because the formats looked compatible. Main's rule after #503 doesn't do this. That is the same point as my comment on #503.

So this doesn't explain the specks seen on stock main (#591). Those must have another cause. Sorry for the noise.

**@⁠t-jonesy** on GitHub · 2026-12-05 16:03 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/37#issuecomment-7440968194) Correction to my comment above: the null-slot explanation was wrong, at least for our fork. We tested it live today with a person driving past the same trees (RX 9070 XT, downtown at noon, switching settings in-game about once a minute): - Showing a neutral texture instead of null for stale or unmade 2D slots: the lime canopies were still there. - Keeping the stale slot's last good view: still there. - Making every such slot bright yellow: we saw yellow elsewhere, but never on the trees. So those slots are not the canopies. - Restricting keep-old to main's rule (never keep the view of a *different* texture while the new upload is pending): the lime went away. Switching back to our wider rule brought it back. So on our fork the lime came from our own keep-old change, which also kept views of another texture. Most likely a green-looking normal map was shown in a leaf albedo slot for a frame or two. Our channel-class check let it through because the formats looked compatible. Main's rule after #503 doesn't do this. That is the same point as my comment on #503. So this doesn't explain the specks seen on stock main (#591). Those must have another cause. Sorry for the noise.
Author
Owner

@⁠t-jonesy on GitHub · 2026-12-05 16:11 UTC · original

Follow-up: the keep-old result in my last comment didn't hold up either. We relaunched with main's keep-old rule from the start, confirmed in the process environment. The lime canopies still appear. Our counters show no other-texture views kept at all in that mode. Adding the neutral stand-in and the stale-view keep on top changed nothing.

So the earlier "lime gone, then back" was most likely chance: it's an intermittent one-frame effect, and one-minute phases are too short to judge by eye. On our fork the cause is still unknown. We've now ruled out stale or null 2D slots and keep-old views of another texture. Next we'll capture frames when it happens, rather than flipping switches. Apologies for the two wrong leads.

**@⁠t-jonesy** on GitHub · 2026-12-05 16:11 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/37#issuecomment-7441101040) Follow-up: the keep-old result in my last comment didn't hold up either. We relaunched with main's keep-old rule from the start, confirmed in the process environment. The lime canopies still appear. Our counters show no other-texture views kept at all in that mode. Adding the neutral stand-in and the stale-view keep on top changed nothing. So the earlier "lime gone, then back" was most likely chance: it's an intermittent one-frame effect, and one-minute phases are too short to judge by eye. On our fork the cause is still unknown. We've now ruled out stale or null 2D slots and keep-old views of another texture. Next we'll capture frames when it happens, rather than flipping switches. Apologies for the two wrong leads.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#37
No description provided.