Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIF: Improve IR setup for skipped unpack inputs/writes #8778

Merged
merged 1 commit into from
May 4, 2023

Conversation

refractionpcsx2
Copy link
Member

Description of Changes

Improved detection of when rows/cols/write protect are used instead of input data, reducing codegen of the VIF JIT

Rationale behind Changes

potentially more brr in some places, but not much.

Suggested Testing Steps

Test games, if it says "Skipping stuff!" in the console, it's hit the new code. Tested Kingdom Hearts 2, Tales of Legendia and Gran Turismo 4 already (the latter two hit it)

@@ -263,6 +258,26 @@ void VifUnpackSSE_Dynarec::ModUnpack(int upknum, bool PostOp)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

on a line a couple up it says "pxFailRel(fmt::format("Vpu/Vif - Invalid Unpack! [%d]", upknum).c_str());" but it never gives the the value of upknum.
crash

Copy link
Contributor

Choose a reason for hiding this comment

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

when the error is triggered the value of it is gonna always be 11.

@refractionpcsx2
Copy link
Member Author

Is that new? That shouldn't have changed

@seta-san
Copy link
Contributor

seta-san commented May 3, 2023

Is that new? That shouldn't have changed

It is from 2020. https://forums.pcsx2.net/Thread-True-Crime-Streets-of-L-A-SLUS-20550-U--29732?pid=616280#pid616280

@refractionpcsx2
Copy link
Member Author

Then I don't care

@refractionpcsx2 refractionpcsx2 force-pushed the vif_skipinput branch 2 times, most recently from 983c611 to 3b07975 Compare May 3, 2023 19:36
@refractionpcsx2 refractionpcsx2 merged commit 341f377 into master May 4, 2023
20 checks passed
@refractionpcsx2 refractionpcsx2 deleted the vif_skipinput branch May 4, 2023 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants