Repository navigation
Conversation
…pness at 0 The game told the display is HDR makes its window textures RGB10A2 at the memory of its RGBA8 ones, and the image found for the picture can be the one made for the RGBA8 description (texture_for_present). With the sharpness at 0 and the window scaling filter off, the picture was blitted, and a blit reads an image by its own format: the RGB10A2 picture read as RGBA8 came out in rainbow colours (Discord: "HDR is broken", "with HDR on I need the sharpness on or it goes rainbow"). With the sharpness on it went through the scaling pass, which samples the picture's own view, and was right. When the picture is RGB10A2 and its image is another format, it now goes through that pass's sampled copy (framegen_scale forced, a plain copy when the filter and the sharpness are off), and the log says so once. Other pairs are left as they are: an RGBA8 image of an RGBA8_SRGB picture blits right, and its sRGB view would darken it. Seen and checked on an RX 6600 XT with HOS_HDR=1 (the game's HDR picture in an SDR window). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Merged into 0.7.9.3 (https://github.com/pixl27/ProjectReLink/releases/tag/v0.7.9.3), through the hotfix branch rather than this pull request, with your authorship kept in the commit ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug
With HDR on, the picture came out in rainbow colours unless the Sharpness was above 0 (Discord: "HDR is broken" in #issues, and in #general: "with HDR on I need the sharpness on or it goes rainbow").
Why
When the game is told the display is HDR, it makes its window textures RGB10A2 at the same memory as its RGBA8 ones.
texture_for_presentcan then return the image made for the RGBA8 description; the log showsits image is format 37, the picture 64.fg_scale), which samples the picture's own view, so the colours were right.The fix
When the picture is RGB10A2 and its image is another format, it goes through the scaling pass's sampled copy (
framegen_scaleforced; a plain copy when the filter and the sharpness are off), and the log says so once.Tested (RX 6600 XT, the game's HDR picture in an SDR window with
HOS_HDR=1)Not verified
🤖 Generated with Claude Code