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

[d3d12] use plane 1 for stencil only views #5100

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Jan 19, 2024

Fixes #5097.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Let's land this as it's, but could we get a test which makes a texture view of every type for each texture - for that matter, why wasn't this caught by a clear test for the stencil aspect?

@teoxoy
Copy link
Member Author

teoxoy commented Jan 19, 2024

for that matter, why wasn't this caught by a clear test for the stencil aspect?

I think that's because we clear textures with depth/stencil formats with render passes where we use a different format.

I added a test for depth only and stencil only view creation.

@ErichDonGubler
Copy link
Member

CI for Windows failed, but only on artifact upload, and not tests running. I think this is good to merge, then!

@ErichDonGubler ErichDonGubler enabled auto-merge (squash) January 19, 2024 21:41
@ErichDonGubler ErichDonGubler merged commit f9509bc into trunk Jan 19, 2024
51 of 52 checks passed
@ErichDonGubler ErichDonGubler deleted the fix-d3d12-stencil-plane branch January 19, 2024 21:42
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Jan 21, 2024
cwfitzgerald pushed a commit to cwfitzgerald/wgpu that referenced this pull request Jan 21, 2024
* [d3d12] use plane 1 for stencil only views

* add test

* skip stencil only view creation on WebGL
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Jan 21, 2024
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.

d3d12: Device loss due to invalid usage of CreateShaderResourceView
3 participants