Skip to content

Conversation

@lightningterror
Copy link
Contributor

Description of Changes

GS/DX11: Don't unbind shader resource if depth stencil view is read only.
We don't need to unbind conflicting srv with dsv if the dsv itself is read only, it is used for depth testing and both can be bind at the same time.
Avoids re binding srv using a read only dsv.

Rationale behind Changes

Optimization.

Suggested Testing Steps

Test Sly 2, Time crisis 2, and other stuff you can find to make sure nothing broke.

At best games will be a few frames faster.

Did you use AI to help find, test, or implement this issue or feature?

No.

…nly.

We don't need to unbind conflicting srv with dsv if the dsv itself is read only, it is used for depth testing and both can be bind at the same time.

Avoids re binding srv using a read only dsv.
@lightningterror lightningterror force-pushed the gs_dx11_dsv_sample_binding branch from f220214 to 5e9d969 Compare November 15, 2025 16:01
@lightningterror lightningterror added this to the Release 2.6 milestone Nov 16, 2025
@lightningterror
Copy link
Contributor Author

Did another smoke test just in case with affected games and seem fine.

@lightningterror lightningterror merged commit c484cf2 into master Nov 24, 2025
22 checks passed
@lightningterror lightningterror deleted the gs_dx11_dsv_sample_binding branch November 24, 2025 15:09
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.

2 participants