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

Implement mipmap views on the OpenGL backend #4278

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Oct 22, 2023

This makes the mipmap example work on AMD HD 5870 / llvmpipe on Windows.

@Zoxc Zoxc requested a review from a team as a code owner October 22, 2023 05:06
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.

The code looks fine, and we can leave this to a follow up, but we need to add a downlevel flag for this, and add validation at the wgpu-core level to make sure that any bound texture is only used with one range of mipmaps, so users get proper errors, not corruption.

@teoxoy
Copy link
Member

teoxoy commented Oct 23, 2023

We recently talked about this restriction in the committee (https://docs.google.com/document/d/1ERkTrtClVa3JSIGUUaTT3eYR9T8TtM06XNOqrkAdI94/view) and also decided on:

Validate (at draw call time) that all bound textures (not storage textures) share the same mip range.

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.

Hitting this button for admin purposes

@Zoxc
Copy link
Contributor Author

Zoxc commented Oct 30, 2023

I'm not very familiar with the wgpu-core level so I'll leave that as follow up work.

@cwfitzgerald cwfitzgerald merged commit 3f80ee7 into gfx-rs:trunk Nov 1, 2023
27 checks passed
@Zoxc Zoxc deleted the gl-mipmap branch November 2, 2023 03:04
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.

3 participants