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

Shaderc: Make non-semantic debug optional #11861

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kamfretoz
Copy link
Contributor

Description of Changes

This PR drops the hard requirement and the dependencies on the patched shaderc (so you can build PCSX2 without the patch if you choose to do so), whilst still reserving the patch for those who needs/wants it (non-semantic debug changes).

Rationale behind Changes

This should go along nicely with the package mode.

Suggested Testing Steps

See if the CI passes and nothing else broke.

Copy link
Contributor

@weirdbeardgame weirdbeardgame left a comment

Choose a reason for hiding this comment

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

Was able to build a non patched pcsx2 on my end.

@kamfretoz
Copy link
Contributor Author

kamfretoz commented Oct 2, 2024

Quickly added a close menu hint to the savestate selector UI to let the user know they can do so.
Decided to put it into separate PR.

Don't you hate it when you come up with more ideas just minutes AFTER the PR has been merged?
Copy link
Member

@F0bes F0bes left a comment

Choose a reason for hiding this comment

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

So, you've removed like 90% of the patch. The idea was to support the existing patch and an unpatched shaderc. Ideally you'd only change one line in the patch, the addition of #define SHADERC_PCSX2_CUSTOM 1.

You've removed shaderc_compilation_status_to_string and bunch of the shaderc_compile_into_xyz functions. If we're going this route a patched shaderc should be dropped outright. But that's not what I wanted to do.

@kamfretoz kamfretoz marked this pull request as draft October 4, 2024 07:04
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.

4 participants