-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 notEqual error #6669
Conversation
Can we add some test cases to cover this? |
@@ -109,8 +109,31 @@ const INT_DIV_VEC4 = ` | |||
return vec4<f32>(resultTemp); | |||
`; | |||
|
|||
const NOT_EQUAL = 'return f32(a != b);'; | |||
const NOT_EQUAL_VEC4 = 'return vec4<f32>(a != b);'; | |||
const NOT_EQUAL = ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that webgl also doesn't check isnan
. Can you verify whether webgl has the similar issue on Linux?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no the same issue on the webgl backend. I think the underlying driver or the bin of shader are not the same for these two backends. There are also some situations that webgl check isnan, but webgpu does not check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Offline talked and we already have unit test cases to cover this.
To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.
This change is