fix(shader): treat all-ones texture address as null binding #400
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!400
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/400/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@YuhiAida on GitHub · 2026-08-29 15:29 UTC · original
YuhiAida:fix/317-null-texture-sentinel→main· +5 −1 · 1 files · 1 commits · closed without mergingSummary
Neptunia ReVerse (PPSA02721) crashes at the Idea Factory logo with:
in ResolveTexture() (descriptors.cpp).
Root cause: the PS5 texture descriptor uses 0xFFFFFFFFFF (40-bit all-ones) as the null-texture sentinel, matching the RDNA null-descriptor convention. ShaderTextureResource::IsNull() only checked Base40() == 0, so the all-ones sentinel was treated as a real texture. Mip-chain validation then failed and the emulator aborted.
Change
IsNull() now returns true for address 0 OR 0xFFFFFFFFFF. All-ones descriptors take the existing safe null-texture path instead of crashing.
Testing
Risk
Low. IsNull() has a single call site (ResolveTexture). The change only adds a second accepted null value to an existing early exit. Games that already worked are unaffected; games that crashed with the all-ones descriptor now take the null path.
Fixes #317
@YuhiAida on GitHub · 2026-08-30 18:34 UTC · original
Hi @Nmzik can you take a look at this one is very small
@Nmzik on GitHub · 2026-08-30 21:05 UTC · original · edited 2026-08-30 21:06 UTC
@YuhiAida this is a hack that's why i won't accept it. RDNA2 doesn't say anything about 0xFFFFFFFFFF as a null value. Some corruption happens in pm4 packets. Thanks for understanding. When I have some time, I’ll research it and push it to the PR.
@Nmzik on GitHub · 2026-08-31 17:04 UTC · original
Fixed
Pull request closed