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

[dx12] Fix partial texture barrier not affecting stencil aspect #2308

Merged
merged 2 commits into from
Dec 26, 2021

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Dec 19, 2021

Connections
Issues accidentally covered by tests in #2307 (i.e. this change is required to land it)

Description
Fix partial texture barrier (i.e. when not the entire texture is transitioned) not affecting stencil aspect.
Fix clearing of D24Plus also clearing "hidden" stencil.

Testing
Tested in #2307, a dedicated test would be nice to be fair but this will have to do for now

Fix clearing of D24Plus also clearing "hidden" stencil
wgpu-hal/src/dx12/command.rs Show resolved Hide resolved
wgpu-hal/src/dx12/command.rs Outdated Show resolved Hide resolved
wgpu-hal/src/dx12/command.rs Outdated Show resolved Hide resolved
@Wumpf Wumpf requested a review from kvark December 26, 2021 13:21
@Wumpf Wumpf force-pushed the dx12-fix-stencil-barrier-and-clear branch from 80c8e0f to e534d75 Compare December 26, 2021 15:44
@kvark kvark merged commit bdfddca into gfx-rs:master Dec 26, 2021
@kvark kvark added the PR: needs back-porting PR with a fix that needs to land on crates label Dec 26, 2021
@Wumpf Wumpf deleted the dx12-fix-stencil-barrier-and-clear branch December 26, 2021 17:07
kvark pushed a commit to kvark/wgpu that referenced this pull request Dec 29, 2021
…rs#2308)

* [dx12] Fix partial texture barrier not affecting stencil aspect
Fix clearing of D24Plus also clearing "hidden" stencil

* [dx12] fix handling stencil only formats for clears & barriers
kvark pushed a commit that referenced this pull request Dec 29, 2021
* [dx12] Fix partial texture barrier not affecting stencil aspect
Fix clearing of D24Plus also clearing "hidden" stencil

* [dx12] fix handling stencil only formats for clears & barriers
@kvark
Copy link
Member

kvark commented Dec 29, 2021

published in wgpu-hal-0.12.1

@kvark kvark removed the PR: needs back-porting PR with a fix that needs to land on crates label Dec 29, 2021
cwfitzgerald pushed a commit that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants