SHADERS. #16

Closed
opened 2026-11-24 03:28:01 +00:00 by brcly · 18 comments
brcly commented 2026-11-24 03:28:01 +00:00 (Migrated from github.com)
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-24T03:28:01Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:issue:6573946936 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16). Originally posted by [brcly](https://github.com/brcly) on 2026-11-24T03:28:01Z. --- 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.
NathansDomainSolutions commented 2026-11-24 04:08:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NathansDomainSolutions on 2026-11-24T04:08:50Z.


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

<!-- greyfinch-sync:brcly/TuxBox:comment:7121749194 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7121749194). Originally posted by [NathansDomainSolutions](https://github.com/NathansDomainSolutions) on 2026-11-24T04:08:50Z. --- I've got claude opus on high ultracode going hella right now. He doing hella shit.
smith-3 commented 2026-11-25 02:21:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by smith-3 on 2026-11-25T02:21:57Z.


@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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7150629831 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7150629831). Originally posted by [smith-3](https://github.com/smith-3) on 2026-11-25T02:21:57Z. --- @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 commented 2026-11-25 02:36:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by smith-3 on 2026-11-25T02:36:42Z.


@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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7150947818 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7150947818). Originally posted by [smith-3](https://github.com/smith-3) on 2026-11-25T02:36:42Z. --- @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.
nztom commented 2026-11-25 02:41:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by nztom on 2026-11-25T02:41:06Z.


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?

<!-- greyfinch-sync:brcly/TuxBox:comment:7151043868 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151043868). Originally posted by [nztom](https://github.com/nztom) on 2026-11-25T02:41:06Z. --- 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?
smith-3 commented 2026-11-25 02:43:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by smith-3 on 2026-11-25T02:43:11Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7151091223 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151091223). Originally posted by [smith-3](https://github.com/smith-3) on 2026-11-25T02:43:11Z. --- 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.
brcly commented 2026-11-25 02:48:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-25T02:48:09Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7151206275 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151206275). Originally posted by [brcly](https://github.com/brcly) on 2026-11-25T02:48:09Z. --- 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.
NathansDomainSolutions commented 2026-11-25 03:21:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NathansDomainSolutions on 2026-11-25T03:21:12Z.


@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

<!-- greyfinch-sync:brcly/TuxBox:comment:7151834281 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151834281). Originally posted by [NathansDomainSolutions](https://github.com/NathansDomainSolutions) on 2026-11-25T03:21:12Z. --- @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
ReverendOzmund commented 2026-11-25 03:21:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-25T03:21:13Z.


Run record with hashes: #139

<!-- greyfinch-sync:brcly/TuxBox:comment:7151834542 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7151834542). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-25T03:21:13Z. --- Run record with hashes: #139
smith-3 commented 2026-11-25 04:15:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by smith-3 on 2026-11-25T04:15:44Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7152681014 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7152681014). Originally posted by [smith-3](https://github.com/smith-3) on 2026-11-25T04:15:44Z. --- 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.
nztom commented 2026-11-25 04:51:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by nztom on 2026-11-25T04:51:00Z.


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

<!-- greyfinch-sync:brcly/TuxBox:comment:7153220592 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7153220592). Originally posted by [nztom](https://github.com/nztom) on 2026-11-25T04:51:00Z. --- 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
theDVNVS commented 2026-11-25 05:25:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by theDVNVS on 2026-11-25T05:25:31Z.


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

<!-- greyfinch-sync:brcly/TuxBox:comment:7153756773 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7153756773). Originally posted by [theDVNVS](https://github.com/theDVNVS) on 2026-11-25T05:25:31Z. --- Thanks to everyone contributing and working on this openly on such a level across projects, love to see that. Will try to add in
brcly commented 2026-11-25 07:51:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-25T07:51:23Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7156328378 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7156328378). Originally posted by [brcly](https://github.com/brcly) on 2026-11-25T07:51:23Z. --- 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.
ReverendOzmund commented 2026-11-25 09:44:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-25T09:44:16Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7158732364 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7158732364). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-25T09:44:16Z. --- 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.
tsunderejay commented 2026-11-25 21:23:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by tsunderejay on 2026-11-25T21:23:33Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7175014546 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7175014546). Originally posted by [tsunderejay](https://github.com/tsunderejay) on 2026-11-25T21:23:33Z. --- 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.
brcly commented 2026-11-25 22:00:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-25T22:00:21Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7175815450 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7175815450). Originally posted by [brcly](https://github.com/brcly) on 2026-11-25T22:00:21Z. --- 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.
JeffreyBytes commented 2026-11-25 22:36:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-11-25T22:36:20Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7176568980 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7176568980). Originally posted by [JeffreyBytes](https://github.com/JeffreyBytes) on 2026-11-25T22:36:20Z. --- 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.
brcly commented 2026-11-25 23:50:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-25T23:50:59Z.


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.

<!-- greyfinch-sync:brcly/TuxBox:comment:7178130551 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7178130551). Originally posted by [brcly](https://github.com/brcly) on 2026-11-25T23:50:59Z. --- 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 commented 2026-11-26 00:26:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-26T00:26:06Z.


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

See you there!

<!-- greyfinch-sync:brcly/TuxBox:comment:7178751259 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/16#issuecomment-7178751259). Originally posted by [brcly](https://github.com/brcly) on 2026-11-26T00:26:06Z. --- 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 labels
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.

Reference
brcly/TuxBox#16
No description provided.