SHADERS. #16

Closed
opened 2026-11-26 06:25:23 +00:00 by github-bot · 18 comments
Owner

@⁠brcly on GitHub · 2026-11-24 03:28 UTC · original

I just want to stress right now, that as much effort as possible needs to be put into shader translation.

It's the number 1 thing stopping TuxBox from booting in-game and working flawlessly.

Most other projects are using different approaches that often "brute-force" their way in-game.

Once shaders are solved, ProjectScarlett will be able to render in-game at a GOOD fps.

**@⁠brcly** on GitHub · 2026-11-24 03:28 UTC · [original](https://github.com/brcly/TuxBox/issues/16) I just want to stress right now, that as much effort as possible needs to be put into shader translation. It's the number 1 thing stopping TuxBox from booting in-game and working flawlessly. Most other projects are using different approaches that often "brute-force" their way in-game. Once shaders are solved, ProjectScarlett will be able to render in-game at a GOOD fps.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:25:23 +00:00
Author
Owner

@⁠NathansDomainSolutions on GitHub · 2026-11-24 04:08 UTC · original

I've got claude opus on high ultracode going hella right now. He doing hella shit.

**@⁠NathansDomainSolutions** on GitHub · 2026-11-24 04:08 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7121749194) I've got claude opus on high ultracode going hella right now. He doing hella shit.
Author
Owner

@⁠smith-3 on GitHub · 2026-11-25 02:21 UTC · original

@⁠NathansDomainSolutions I’ll take the compute v_mul_lo_u16 inline integer case and test that the other register half is preserved with a synthetic shader. Let me know if you’re already covering it.

**@⁠smith-3** on GitHub · 2026-11-25 02:21 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7150629831) @⁠NathansDomainSolutions I’ll take the compute `v_mul_lo_u16` inline integer case and test that the other register half is preserved with a synthetic shader. Let me know if you’re already covering it.
Author
Owner

@⁠smith-3 on GitHub · 2026-11-25 02:36 UTC · original

@⁠NathansDomainSolutions I’ll take the compute v_sad_u8 case with an inline zero accumulator and verify it against a CPU reference with a synthetic shader.

**@⁠smith-3** on GitHub · 2026-11-25 02:36 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7150947818) @⁠NathansDomainSolutions I’ll take the compute `v_sad_u8` case with an inline zero accumulator and verify it against a CPU reference with a synthetic shader.
Author
Owner

@⁠nztom on GitHub · 2026-11-25 02:41 UTC · original

I want to contribute to this but I don't know how.
I have zero experience with porting and only minimal with wine/proton.
I see you want people focusing on shaders.

The only thing I can realistically offer is tokens.

How can I best contribute if at all?

**@⁠nztom** on GitHub · 2026-11-25 02:41 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151043868) I want to contribute to this but I don't know how. I have zero experience with porting and only minimal with wine/proton. I see you want people focusing on shaders. The only thing I can realistically offer is tokens. How can I best contribute if at all?
Author
Owner

@⁠smith-3 on GitHub · 2026-11-25 02:43 UTC · original

I’ll take the compute v_mad_u32_u16 case with inline accumulator 7 and check all 64 synthetic shader outputs against a CPU reference on the RTX 4080 SUPER.

**@⁠smith-3** on GitHub · 2026-11-25 02:43 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151091223) I’ll take the compute `v_mad_u32_u16` case with inline accumulator `7` and check all 64 synthetic shader outputs against a CPU reference on the RTX 4080 SUPER.
Author
Owner

@⁠brcly on GitHub · 2026-11-25 02:48 UTC · original

Tokens and AI is enough.

We just need as much man power into both successful and optimized compilation.

Shaders are a crucial part of a games functionality and it won't run or look correct without them.

I'm facing a small issue with continuing past a loading screen of a recent title to its cutscenes / prologue rendering.

Once past that point the reality of how many more need support will be realized.

I'm trying atm to translate and compile as many of the currently known ones as possible, however, first boot of a game without cached shaders can still take upwards of 10 minutes to get through sometimes and some shaders seem to sometimes cause the game to hang completely and not continue.

We're at a stage now of coverage and optimization for what's known.

**@⁠brcly** on GitHub · 2026-11-25 02:48 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151206275) Tokens and AI is enough. We just need as much man power into both successful and optimized compilation. Shaders are a crucial part of a games functionality and it won't run or look correct without them. I'm facing a small issue with continuing past a loading screen of a recent title to its cutscenes / prologue rendering. Once past that point the reality of how many more need support will be realized. I'm trying atm to translate and compile as many of the currently known ones as possible, however, first boot of a game without cached shaders can still take upwards of 10 minutes to get through sometimes and some shaders seem to sometimes cause the game to hang completely and not continue. We're at a stage now of coverage and optimization for what's known.
Author
Owner

@⁠NathansDomainSolutions on GitHub · 2026-11-25 03:21 UTC · original

@⁠nztom Ask ChatGPT how to install claude to the terminal, then do what he say. After claude is in terminal you finna say to claude do as much shaders as you can rapid and point him to this github link

**@⁠NathansDomainSolutions** on GitHub · 2026-11-25 03:21 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151834281) @⁠nztom Ask ChatGPT how to install claude to the terminal, then do what he say. After claude is in terminal you finna say to claude do as much shaders as you can rapid and point him to this github link
Author
Owner

@⁠ReverendOzmund on GitHub · 2026-11-25 03:21 UTC · original

Run record with hashes: #139

**@⁠ReverendOzmund** on GitHub · 2026-11-25 03:21 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151834542) Run record with hashes: #139
Author
Owner

@⁠smith-3 on GitHub · 2026-11-25 04:15 UTC · original

We found incorrect DPP16 quad permutations in v_or_b32, v_and_b32 and v_xor_b32. With our local fix, all 2,496 compute outputs and 1,644 drawn pixels matched the CPU reference on an RTX 4080 SUPER across 75 synthetic shaders. This covers both FI settings, including masked source lanes.

**@⁠smith-3** on GitHub · 2026-11-25 04:15 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7152681014) We found incorrect DPP16 quad permutations in `v_or_b32`, `v_and_b32` and `v_xor_b32`. With our local fix, all 2,496 compute outputs and 1,644 drawn pixels matched the CPU reference on an RTX 4080 SUPER across 75 synthetic shaders. This covers both FI settings, including masked source lanes.
Author
Owner

@⁠nztom on GitHub · 2026-11-25 04:51 UTC · original

I've asked codex to to monitor issues and follow directives from established contributors and given it your feedback. If you @ me it will hopefully pick it up and do as its told but I'll check back periodically also

**@⁠nztom** on GitHub · 2026-11-25 04:51 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7153220592) I've asked codex to to monitor issues and follow directives from established contributors and given it your feedback. If you @ me it will hopefully pick it up and do as its told but I'll check back periodically also
Author
Owner

@⁠theDVNVS on GitHub · 2026-11-25 05:25 UTC · original

Thanks to everyone contributing and working on this openly on such a level across projects, love to see that. Will try to add in

**@⁠theDVNVS** on GitHub · 2026-11-25 05:25 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7153756773) Thanks to everyone contributing and working on this openly on such a level across projects, love to see that. Will try to add in
Author
Owner

@⁠brcly on GitHub · 2026-11-25 07:51 UTC · original

Fantastic progress guys, I do appreciate all the help.

I'm still on the teetering edge of actually getting in game without crashing, hopefully we'll have progress soon.

With everyone's help so far, we've already gained 50% shader coverage compared to this time yesterday.

Now, it may not be translating correctly per say, but the fact they compile is a good start, making it look correct is the milestone after.

**@⁠brcly** on GitHub · 2026-11-25 07:51 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7156328378) Fantastic progress guys, I do appreciate all the help. I'm still on the teetering edge of actually getting in game without crashing, hopefully we'll have progress soon. With everyone's help so far, we've already gained 50% shader coverage compared to this time yesterday. Now, it may not be translating correctly per say, but the fact they compile is a good start, making it look correct is the milestone after.
Author
Owner

@⁠ReverendOzmund on GitHub · 2026-11-25 09:44 UTC · original

With slots 148/80 implemented (#156) on main 53bb4d6, ProjectScarlett on an RTX 3080 Ti now sets a current mission (0x98c85f2a at frame 2,351, 4m29s, 47 peds / 227 vehicles), then crashes 7 frames later. The crash is deliberate: game_scarlett_master.exe+0x23cf683 decodes the label "GPU Loc Sig", logs it, and writes 0x4d8bd421 to address 0. 10 GPU memory waits were released by the 5 s timeout in the same run, so this may be a GPU-progress watchdog firing on work that never completes. I haven't looked further into the check itself.

**@⁠ReverendOzmund** on GitHub · 2026-11-25 09:44 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7158732364) With slots 148/80 implemented (#156) on main 53bb4d6, ProjectScarlett on an RTX 3080 Ti now sets a current mission (0x98c85f2a at frame 2,351, 4m29s, 47 peds / 227 vehicles), then crashes 7 frames later. The crash is deliberate: game_scarlett_master.exe+0x23cf683 decodes the label "GPU Loc Sig", logs it, and writes 0x4d8bd421 to address 0. 10 GPU memory waits were released by the 5 s timeout in the same run, so this may be a GPU-progress watchdog firing on work that never completes. I haven't looked further into the check itself.
Author
Owner

@⁠tsunderejay on GitHub · 2026-11-25 21:23 UTC · original

Current local full-package preparation: 30,939 requests checked, 16,074 compiled, 5,021 cached, 9,844 unsupported, 0 failed. The largest refusal group is mesh root signature missing (8,699), followed by divergent wave reductions (291), non-constant lane ops (143), and raw-buffer IDXEN stride (126). A subsequent RTX 3050 run reached 35,194 frames but stayed black; its failure TSV ranked 2,009 undelivered pipelines, including 615 translated-then-rejected and 144 divergent-wave refusals. So shader coverage is still the dominant blocker, but completion alone is not sufficient for visuals.

**@⁠tsunderejay** on GitHub · 2026-11-25 21:23 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7175014546) Current local full-package preparation: 30,939 requests checked, 16,074 compiled, 5,021 cached, 9,844 unsupported, 0 failed. The largest refusal group is mesh root signature missing (8,699), followed by divergent wave reductions (291), non-constant lane ops (143), and raw-buffer IDXEN stride (126). A subsequent RTX 3050 run reached 35,194 frames but stayed black; its failure TSV ranked 2,009 undelivered pipelines, including 615 translated-then-rejected and 144 divergent-wave refusals. So shader coverage is still the dominant blocker, but completion alone is not sufficient for visuals.
Author
Owner

@⁠brcly on GitHub · 2026-11-25 22:00 UTC · original · edited 2026-11-25 22:11 UTC

Ok, I'm gonna be switching TuxBox to default to GE-Proton11-14

VKD3D-Proton had some huge changes in the last few days that I was not aware about that drastically speed up shader compilation time.

I was surprised, but TuxBox's actual shader translation code wasn't causing a huge overhead. VKD3D-Proton infact was.

This change, with a few more I'm gonna change before reviewing the PR's should helpfully drastically lower cold-cache compilation times.

**@⁠brcly** on GitHub · 2026-11-25 22:00 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7175815450) · edited 2026-11-25 22:11 UTC Ok, I'm gonna be switching TuxBox to default to GE-Proton11-14 VKD3D-Proton had some huge changes in the last few days that I was not aware about that drastically speed up shader compilation time. I was surprised, but TuxBox's actual shader translation code wasn't causing a huge overhead. VKD3D-Proton infact was. This change, with a few more I'm gonna change before reviewing the PR's should helpfully drastically lower cold-cache compilation times.
Author
Owner

@⁠JeffreyBytes on GitHub · 2026-11-25 22:36 UTC · original

One AMD data point before the default changes. On an RX 6700 XT (Mesa 26.3.1 RADV), GE-Proton11-14 (vkd3d-proton v3.1-83-gcae8353ed) behaves the same as Proton Experimental for #191: buffer-remap fails with remap readback differs, ProjectScarlett presents only black (lit=0.000 on all 161 samples in 300 s), and with the preload from #191 it reaches the Account Picker (lit=0.998 mean=(32,32,44)). Note that this vkd3d-proton logs Failed to import host memory once, where Proton Experimental logs it 131 times in the same run, so that line can no longer be used to count refused imports.

**@⁠JeffreyBytes** on GitHub · 2026-11-25 22:36 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7176568980) One AMD data point before the default changes. On an RX 6700 XT (Mesa 26.3.1 RADV), GE-Proton11-14 (vkd3d-proton `v3.1-83-gcae8353ed`) behaves the same as Proton Experimental for #191: `buffer-remap` fails with `remap readback differs`, ProjectScarlett presents only black (`lit=0.000` on all 161 samples in 300 s), and with the preload from #191 it reaches the Account Picker (`lit=0.998 mean=(32,32,44)`). Note that this vkd3d-proton logs `Failed to import host memory` once, where Proton Experimental logs it 131 times in the same run, so that line can no longer be used to count refused imports.
Author
Owner

@⁠brcly on GitHub · 2026-11-25 23:50 UTC · original

Ok, I'm gonna put more effort into separating the AMD and Nvidia pipelines so we're not clashing and hopefully have a better overall experience for both card brands.

As I started this project on my Nvidia card, I had no idea the experience AMD users are having and vice versa.

Give me a bit of time to cook up a solution to help both parties.

**@⁠brcly** on GitHub · 2026-11-25 23:50 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7178130551) Ok, I'm gonna put more effort into separating the AMD and Nvidia pipelines so we're not clashing and hopefully have a better overall experience for both card brands. As I started this project on my Nvidia card, I had no idea the experience AMD users are having and vice versa. Give me a bit of time to cook up a solution to help both parties.
Author
Owner

@⁠brcly on GitHub · 2026-11-26 00:26 UTC · original

I'm going to close this issue in favour of moving these discussions to.... discussions.

See you there!

**@⁠brcly** on GitHub · 2026-11-26 00:26 UTC · [original](https://github.com/brcly/TuxBox/issues/16#issuecomment-7178751259) I'm going to close this issue in favour of moving these discussions to.... discussions. See you there!
This discussion has been locked. Commenting is limited to contributors.
No description provided.