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

Test clear_texture::clear_texture_2d_uncompressed fails on metal with METAL_DEVICE_WRAPPER_TYPE=1 #2794

Closed
cwfitzgerald opened this issue Jun 20, 2022 · 2 comments
Labels
api: metal Issues with Metal area: correctness We're behaving incorrectly help required We need community help to make this happen. type: bug Something isn't working

Comments

@cwfitzgerald
Copy link
Member

Description

See title.

Repro steps

METAL_DEVICE_WRAPPER_TYPE=1 cargo nextest run --all --no-fail-fast

Expected vs observed behavior

Errors out with:

        FAIL [   0.099s]                  wgpu::wgpu-tests clear_texture::clear_texture_2d_uncompressed

--- STDOUT:                               wgpu::wgpu-tests clear_texture::clear_texture_2d_uncompressed ---

running 1 test
clearing texture with R8Unorm, dimension D1, size Extent3d { width: 64, height: 1, depth_or_array_layers: 1 }

--- STDERR:                               wgpu::wgpu-tests clear_texture::clear_texture_2d_uncompressed ---
2022-06-20 15:57:08.180 wgpu_tests-cde506ede13d2d24[59782:793409] Metal API Validation Enabled
validateRenderPassDescriptor:782: failed assertion `RenderPass Descriptor Validation
MTLRenderPassAttachmentDescriptor texture must not be MTLTextureType1D.
'

     Summary [   0.100s] 1 tests run: 0 passed, 1 failed, 74 skipped
@cwfitzgerald cwfitzgerald added type: bug Something isn't working help required We need community help to make this happen. api: metal Issues with Metal area: correctness We're behaving incorrectly labels Jun 20, 2022
@jinleili
Copy link
Contributor

The WebGPU Spec says:

A GPUTextureView view is a renderable texture view if the following requirements are met:
view.[[texture]].usage must contain RENDER_ATTACHMENT.
descriptor.dimension must be "2d".

So this fail maybe more of an alignment issue with the spec?

@cwfitzgerald
Copy link
Member Author

Closed by #2818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: metal Issues with Metal area: correctness We're behaving incorrectly help required We need community help to make this happen. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants