Introduce control to relax memory ordering semantics for atomics on Intel HW#42
Open
eternastudento wants to merge 1 commit intodoitsujin:mainfrom
Open
Introduce control to relax memory ordering semantics for atomics on Intel HW#42eternastudento wants to merge 1 commit intodoitsujin:mainfrom
eternastudento wants to merge 1 commit intodoitsujin:mainfrom
Conversation
…ntel HW DX specification does not mention any additional synchronization requirements for atomics, e.g.: https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/atomic-iadd--sm5---asm- Therefore the semantics could be relaxed for certain HW to not introduce additional synchronization.
Owner
|
I really don't want to add hardware-specific paths here. I'm aware that this is still an issue, but I'm busy with far too many non-dxvk things at the moment to really look into this, I simply don't have the time to deal with this properly at the moment. Either way, adding config hacks to work around suboptimal code gen without understanding why the supposedly optimal thing breaks in certain game/driver combinations isn't really acceptable unless this issue is very high priority for some reason (i.e. things are broken/unusable on current Experimental or something). I want this code to remain maintainable, changing things in such a way that it potentially creates more hardware-specific issues in the long run is the opposite of that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DX specification does not mention any additional synchronization requirements for atomics, e.g.:
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/atomic-iadd--sm5---asm-
Therefore the semantics could be relaxed for certain HW to not introduce additional synchronization.
To be followed with dxvk change to set the flag on Intel HW.