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

Get per stage GPU mix weights on demand #3992

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

greggman
Copy link
Contributor

It used to be that mix weights for all stages were queried at initialization time. The problem is, on Intel Mac, the compute stage always fails. That means the majority of texture tests just would not run on Intel Mac, at least on Chrome and Firefox at the moment.

Changing the code to load them per stage on demand means the texture builtin tests can run for compute and fragment stages on Intel Mac.

You could argue this doesn't need to be fixed since Chrome and Firefox should fix their texture code on Intel Mac but I think at the moment there are a bunch more high priority things being worked on so it's best not to lose coverage for compute and fragment shaders.

Copy link
Contributor

@shrekshao shrekshao left a comment

Choose a reason for hiding this comment

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

LGTM

It used to be that mix weights for all stages were queried
at initialization time. The problem is, on Intel Mac, the
compute stage always fails. That means the majority of texture
tests just would not run on Intel Mac, at least on Chrome and
Firefox at the moment.

Changing the code to load them per stage on demand means
the texture builtin tests can run for compute and fragment
stages on Intel Mac.

You could argue this doesn't need to be fixed since Chrome and
Firefox should fix their texture code on Intel Mac but I think
at the moment there are a bunch more high priority things
being worked on so it's best not to lose coverage for compute
and fragment shaders.
@greggman greggman enabled auto-merge (squash) October 11, 2024 23:33
@greggman greggman merged commit 3cf7402 into gpuweb:main Oct 11, 2024
1 check passed
@greggman greggman deleted the get-mix-weights-on-demand branch October 11, 2024 23:37
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