Skip to content

gs-tc: propagate texture shuffle format on readback#4887

Merged
tadanokojin merged 1 commit into
PCSX2:masterfrom
tadanokojin:silent-hill
Oct 9, 2021
Merged

gs-tc: propagate texture shuffle format on readback#4887
tadanokojin merged 1 commit into
PCSX2:masterfrom
tadanokojin:silent-hill

Conversation

@tadanokojin

@tadanokojin tadanokojin commented Oct 8, 2021

Copy link
Copy Markdown
Member

Description of Changes

Read back PSMCT32 when the texture being blit is the result of a channel effect. This is not exactly right but there's no harm in having the extra data in cpu memory since it's supposed to be there anyway. The only issue is it gets unscaled.

fixes #1326
fixes #2732

Rationale behind Changes

Fixes silent hill flashlight.
image

Suggested Testing Steps

If you plan on testing silent hill, the game still needs fast texture invalidation.

@prafullpcsx2

Copy link
Copy Markdown
Contributor

Great work. This also fixes Silent Hill shattered memories issue with flashlight and also shadows.

@MrCK1

MrCK1 commented Oct 8, 2021

Copy link
Copy Markdown
Member

Ran through a bunch of games, didn't notice any new bugs/changes.

@refractionpcsx2

Copy link
Copy Markdown
Member

Wasn't sure what games this might fix (can't think of any with broken lighting/shadows off the top of my head), but I tested a bunch of games I know do GS downloads and they were all still peachy (except Star Wars Racer which is still broken, but probably outside the scope of this PR since it's depth download).

so yeah, couldn't find anything else fixed I'm afraid, but also nothing broken, so LGTM

@lightningterror lightningterror changed the title tc: propagate texture shuffle format on readback gs-tc: propagate texture shuffle format on readback Oct 8, 2021
@lightningterror lightningterror added this to the Release 1.8 milestone Oct 8, 2021
@lightningterror

Copy link
Copy Markdown
Contributor

Would be nice to adjust the commit prefix to gs-tc:

@lightningterror lightningterror left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran through the dump list which trigger the code, seemed fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Silent Hill Origins - dark/white textures rendering on HW Silent Hill: Shattered Memories HW Mode Breaks Streaming

5 participants