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

VideoBackends: Query fixes and cleanups #11286

Merged
merged 4 commits into from Dec 19, 2022
Merged

Conversation

K0bin
Copy link
Contributor

@K0bin K0bin commented Nov 16, 2022

Queries in the Vulkan renderer are completely broken right now:

  • We're trying to access the results before the queries have executed.
  • Query results get attributed to the wrong query type.
  • The query pool isn't properly reset before reusing the queries.

This seems to have be a regression caused by 604ab67.

The last commit is somewhat unrelated but it's something I noticed.

@K0bin K0bin force-pushed the vk-query-fix branch 2 times, most recently from f691694 to 0d60acb Compare November 16, 2022 18:42
@K0bin K0bin force-pushed the vk-query-fix branch 2 times, most recently from 436ffc8 to 1e9adc2 Compare November 18, 2022 00:44
@K0bin K0bin requested a review from iwubcode November 18, 2022 01:34
Fixes both checking whether queries are done
and actually resets query pools.
HOST barriers need to be issued regardless of
whether the memory type is coherent
and we need to properly synchronize writes to the buffer.
@Rumi-Larry
Copy link

Rumi-Larry commented Nov 30, 2022

This seems to also affect D3D12, which should be reflected in the title.

@K0bin K0bin changed the title Vulkan: Fix queries VideoBackends: Query fixes and cleanups Nov 30, 2022
@K0bin
Copy link
Contributor Author

K0bin commented Nov 30, 2022

Done

@AdmiralCurtiss
Copy link
Contributor

Is this good to go?

@K0bin
Copy link
Contributor Author

K0bin commented Dec 4, 2022

As far as I'm concerned: yes.

@JMC47
Copy link
Contributor

JMC47 commented Dec 19, 2022

Been sitting for a couple of weeks. I did a quick test and it seems fine. I figure this meant perfqueries, so I tested Super Mario Sunshine and the beach worked as per usual. Couldn't test D3D12 since I'm on Linux.

@JMC47 JMC47 merged commit fb8aa97 into dolphin-emu:master Dec 19, 2022
11 checks passed
@K0bin K0bin deleted the vk-query-fix branch December 27, 2022 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants