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

FramebufferManager: Flush pending EFB pokes in PopulateEFBCache #10471

Merged

Conversation

Pokechu22
Copy link
Contributor

I.e. flush EFB pokes before running an EFB peek, if the cache tile isn't present. If the cache tile is present, then EFB pokes should have been written to the cache tile and thus don't need to be flushed.

Found while working on dolphin-emu/hwtests#44 (permalink to the relevant version). As part of that test, I send a bunch of EFB pokes, and then to make sure I wrote the EFB correctly, I use EFB peeks immediately afterwards to verify those values. That was giving incorrect results in Dolphin (Test 1 was failing) but now gives correct results. (This PR does not fix the other issues covered by that hardware test; tests other than 1 and 2 still fail with this PR.)

I.e. flush pokes before running an EFB peek, if the cache tile isn't present.  If the cache tile is present, then EFB pokes should have been written to the cache tile and thus don't need to be flushed.
@Pokechu22 Pokechu22 force-pushed the flush-efb-pokes-before-peeking branch from 688a2e8 to 23cbd57 Compare February 21, 2022 21:23
@Pokechu22 Pokechu22 merged commit 5b3b6a7 into dolphin-emu:master Feb 23, 2022
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants