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

WebGPU: Fix wrong auto dimension on MacOS while generate MipMaps #24135

Merged
merged 1 commit into from
May 27, 2022

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented May 26, 2022

Description

Fix wrong auto dimension on MacOS while generate MipMaps

EDIT: They assume a wrong self dimension for this context. The bug seems to be on Windows which assumes the 2d dimension even this being a cube automatically if this is not sent in the object.

To reproduce this bug on Windows just put for srcView:
dimension: GPUTextureViewDimension.Cube

Maybe this parameter should be made explicit in the future?

This contribution is funded by Google via Igalia

@sunag
Copy link
Collaborator Author

sunag commented May 26, 2022

/ping @mrdoob

@sunag sunag added this to the r142 milestone May 26, 2022
@sunag sunag merged commit 44d2ec9 into dev May 27, 2022
@sunag sunag deleted the dev-fix-webgpu-mipmaps-macOS branch May 28, 2022 19:38
@mrdoob
Copy link
Owner

mrdoob commented Jun 1, 2022

@sunag Could you test this again and double check that the version of Canary on MacOS and Windows is the same? If they're the same we should report the bug to Chrome.

sunag added a commit to sunag/three.js that referenced this pull request Jun 1, 2022
@sunag
Copy link
Collaborator Author

sunag commented Jun 1, 2022

@sunag Could you test this again and double check that the version of Canary on MacOS and Windows is the same? If they're the same we should report the bug to Chrome.

Now we have the same behavior in both operation system, the problem now presents in Windows too as I assumed, this version was out of date.

Tested on:
Windows 104.0.5095.0
MacOS 104.0.5090.0

@mrdoob
Copy link
Owner

mrdoob commented Jun 1, 2022

That's good. Thanks for testing!

abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
snagy pushed a commit to snagy/three.js-1 that referenced this pull request Sep 21, 2022
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