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

Buffer locking cleanup #3454

Merged
merged 12 commits into from
Jun 11, 2023
Merged

Conversation

K0bin
Copy link
Collaborator

@K0bin K0bin commented May 26, 2023

Feels good to remove hacks.

Thanks to Axel Davy of Gallium Nine fame for telling me about the SWVP edge case here.

8bf11fd helps Injustice: Gods Among Us.

@K0bin K0bin marked this pull request as ready for review May 26, 2023 10:18
@K0bin K0bin requested a review from Joshua-Ashton May 26, 2023 10:19
@K0bin K0bin added the d3d9 label May 26, 2023
@K0bin K0bin marked this pull request as draft May 26, 2023 12:11
@K0bin
Copy link
Collaborator Author

K0bin commented May 26, 2023

I decided to keep the "allowDirectBufferMapping" option after all and enable it for Injustice.

@K0bin K0bin marked this pull request as ready for review May 26, 2023 14:10
@WinterSnowfall
Copy link
Contributor

Does this also fix #2375 mayhaps?

@K0bin
Copy link
Collaborator Author

K0bin commented Jun 2, 2023

@WinterSnowfall It doesn't, see my comment in the issue.

@K0bin K0bin force-pushed the buffer-lock-stuff branch 2 times, most recently from 9ff34c2 to ff17f53 Compare June 6, 2023 19:17
@@ -4808,6 +4808,10 @@ namespace dxvk {
if (desc.Usage & D3DUSAGE_DYNAMIC)
Flags &= ~D3DLOCK_DONOTWAIT;

// Tests show that D3D9 drivers ignore DISCARD when the device is lost.
if (unlikely(m_deviceLostState != D3D9DeviceLostState::Ok))
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about for images?

Copy link
Collaborator

@Joshua-Ashton Joshua-Ashton left a comment

Choose a reason for hiding this comment

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

I am sus about this commit but I guess we can see how it plays out...

(The DYNAMIC one... GitHub didnt put what I was commenting on).

@Joshua-Ashton Joshua-Ashton merged commit a1a91dd into doitsujin:master Jun 11, 2023
3 checks passed
@K0bin K0bin deleted the buffer-lock-stuff branch June 11, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants