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

VideoCommon: Fix shader precompilization detection #10346

Merged

Conversation

iwubcode
Copy link
Contributor

@iwubcode iwubcode commented Jan 5, 2022

PR #9414 assumed everything was buggy then tried to retroactively fix certain vendors. Unfortunately, this logic doesn't work. This led to windows and macos always using a single thread for shader compilation when opengl/vulkan were in use. Instead of attempting to fix this (which seemed like was not the intention of the bug database and also might have ill effects on other bugs), I decided to let everything support the detection by default. We can add bugs if something is broken because of it.

I say "all" but out of our fear with Android often being buggy, I marked that as our first OS that doesn't support the auto detection. Users wishing to speed-up precompilation can still manually set the threads in configuration like normal.

…ling of shaders, we can create bugs if there are issues. Android is assumed buggy
@iwubcode iwubcode marked this pull request as draft January 5, 2022 02:46
@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

  • DKCR-fast-depth on mvk-osx-m1: diff
  • ea-pink on mvk-osx-m1: diff
  • lego-star-wars-crane-shadow on mvk-osx-m1: diff
  • nfsu-purplerect on mvk-osx-m1: diff
  • rs2-skybox on mvk-osx-m1: diff
  • tla-menu on mvk-osx-m1: diff

automated-fifoci-reporter

@iwubcode iwubcode marked this pull request as ready for review January 5, 2022 03:25
@ghost
Copy link

ghost commented Jan 5, 2022

So this is disable on android only?

@iwubcode
Copy link
Contributor Author

iwubcode commented Jan 5, 2022

So this is disable on android only?

Correct

@JMC47 JMC47 merged commit 4c0dcf4 into dolphin-emu:master Jan 6, 2022
10 checks passed
@iwubcode iwubcode deleted the fixed_shader_precompile_parallelization branch January 6, 2022 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants