Port helper root signature serialization for RDNA2 on Proton #152

Closed
diafebus wants to merge 1 commit from upstream-pr/152 into stable
diafebus commented 2026-11-28 10:08:04 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-28T10:08:04Z.


This ports the Belobug helper root signature serialization and paired HLSL changes to KLBF stable at 4c79ac5. It is the source for the first local KLBF build that drew outdoor geometry, characters and the prison interior on an RX 6950 XT with RADV and GE-Proton 11-14.

In earlier diagnostics, creating a root signature from a Wine-compiled helper shader blob returned E_FAIL, while host serialization succeeded. The port also changes the indirect clamp and card compare helpers. Their individual effects are unverified. Some scenes remained dark and Lucia's facial surface was missing in this build.

The working launch settings and suggested isolation steps are in issue #120.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5539042683 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/152). Originally posted by [diafebus](https://github.com/diafebus) on 2026-11-28T10:08:04Z. --- This ports the Belobug helper root signature serialization and paired HLSL changes to KLBF stable at `4c79ac5`. It is the source for the first local KLBF build that drew outdoor geometry, characters and the prison interior on an RX 6950 XT with RADV and GE-Proton 11-14. In earlier diagnostics, creating a root signature from a Wine-compiled helper shader blob returned `E_FAIL`, while host serialization succeeded. The port also changes the indirect clamp and card compare helpers. Their individual effects are unverified. Some scenes remained dark and Lucia's facial surface was missing in this build. The working launch settings and suggested isolation steps are in [issue #120](https://github.com/PastiiJay/klbf-lab/issues/120#issuecomment-7237482162).
diafebus commented 2026-11-28 10:09:35 +00:00 (Migrated from github.com)
<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7237710266 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/152#issuecomment-7237710266). Originally posted by [diafebus](https://github.com/diafebus) on 2026-11-28T10:09:35Z. --- The source patch is now on issue #120: https://github.com/PastiiJay/klbf-lab/issues/120#issuecomment-7237704495 and https://github.com/PastiiJay/klbf-lab/issues/120#issuecomment-7237704678.
PastiiJay commented 2026-11-28 10:28:36 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-28T10:28:36Z.


Thanks a lot, this is a big one and the split (base, host serialization only, full branch) is exactly how we'll test it. We'll run it on our side and credit you for whatever we take. If you still have the log from that first run that drew the prison interior, could you attach it here as a .txt? It would help us check we reproduce the same thing.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7237920674 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/152#issuecomment-7237920674). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-28T10:28:36Z. --- Thanks a lot, this is a big one and the split (base, host serialization only, full branch) is exactly how we'll test it. We'll run it on our side and credit you for whatever we take. If you still have the log from that first run that drew the prison interior, could you attach it here as a .txt? It would help us check we reproduce the same thing.
HandshakeHackin commented 2026-11-28 16:25:21 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-28T16:25:21Z.


For the #120 split test, I compared the proposed static-sampler parser with native Windows D3DCompile. With the comparison and border fields omitted, the parser produces NONE and OPAQUE_BLACK. The compiler produces LESS_EQUAL and OPAQUE_WHITE. The two-line correction matched the compiler for all three distinct sampler declarations in the published helpers and for explicit overrides. Any link to the visual symptoms on Proton remains unverified. Before/after CI · Two-line fix

I also reproduced a test-build failure on this PR. Two include_str!("lightprobe.rs") calls require a file missing from the public branch. The fixture change keeps the 16 published signatures in the normal suite and loads the optional probe file when its device test runs. Three public tests passed and two hardware tests stayed ignored. Fixture change

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7242230406 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/152#issuecomment-7242230406). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-28T16:25:21Z. --- For the #120 split test, I compared the proposed static-sampler parser with native Windows D3DCompile. With the comparison and border fields omitted, the parser produces NONE and OPAQUE_BLACK. The compiler produces LESS_EQUAL and OPAQUE_WHITE. The two-line correction matched the compiler for all three distinct sampler declarations in the published helpers and for explicit overrides. Any link to the visual symptoms on Proton remains unverified. [Before/after CI](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46164374476/job/141038539520) · [Two-line fix](https://github.com/HandshakeHackin/klbf-lab/commit/d9353ecc271fa6df00f18f4f6602b642269b8e3a) I also reproduced a test-build failure on this PR. Two `include_str!("lightprobe.rs")` calls require a file missing from the public branch. The fixture change keeps the 16 published signatures in the normal suite and loads the optional probe file when its device test runs. Three public tests passed and two hardware tests stayed ignored. [Fixture change](https://github.com/HandshakeHackin/klbf-lab/commit/7278580dd79362c88519bcad90dbb6b539726a96)

Pull request closed

Sign in to join this conversation.
No reviewers
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
PastiiJay/klbf-lab!152
No description provided.