Skip to content

Fix typing for select #7572

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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Apr 18, 2025

Connections

Testing

Tests have been added, as well as a test run against webgpu:shader,execution,expression,call,builtin,select:* in a locally modified Firefox.

Squash or Rebase?

rebase plz

Checklist

  • If this contains user-facing changes, add a CHANGELOG.md entry.

@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch from 991856b to cfd29df Compare April 18, 2025 20:48
@jimblandy

This comment was marked as resolved.

@jimblandy

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch from cfd29df to c6dcb79 Compare April 19, 2025 03:38
@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler

This comment was marked as resolved.

@jimblandy

This comment was marked as resolved.

@jimblandy

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch from c6dcb79 to 62c8609 Compare April 21, 2025 15:56
@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch 2 times, most recently from 2de9a82 to 83ad8bb Compare April 23, 2025 16:07
@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler changed the title WIP: fix(naga): properly impl. auto. type conv. for select fix(naga): properly impl. auto. type conv. for select Apr 23, 2025
@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch 2 times, most recently from db91e44 to 2f271ab Compare April 29, 2025 02:15
jimblandy

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch 2 times, most recently from d792084 to 817989b Compare April 29, 2025 20:18
@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch 2 times, most recently from 6db2cc1 to 6e62829 Compare May 1, 2025 21:14
@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch from 6e62829 to 88fa2bb Compare May 1, 2025 22:04

let select_single_component =
|this: &mut Self, reject_scalar, reject, accept, condition| {
let accept = this.cast(accept, reject_scalar, span)?;
Copy link
Member Author

Choose a reason for hiding this comment

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

Migrated from #7602 (comment): @jimblandy was wondering if we really needed cast here. So far as I can tell...yes.

Copy link
Member Author

Choose a reason for hiding this comment

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

todo: Drop changes here. I'd originally changed this code, with a refactor that's no longer needed.

@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch 2 times, most recently from dd40727 to 1881436 Compare May 2, 2025 01:39
@ErichDonGubler ErichDonGubler marked this pull request as ready for review May 2, 2025 01:40
@ErichDonGubler ErichDonGubler changed the title fix(naga): properly impl. auto. type conv. for select Fix typing for select May 2, 2025
@ErichDonGubler ErichDonGubler force-pushed the auto-type-conv-for-select-args branch from 1881436 to 4c8503b Compare May 2, 2025 01:45
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.

Automatic type conversion not working for select
2 participants