-
Notifications
You must be signed in to change notification settings - Fork 209
No shader runtime checks #1093
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
No shader runtime checks #1093
Conversation
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
|
It's https://docs.rs/wgpu/latest/wgpu/struct.ShaderRuntimeChecks.html#structfield.force_loop_bounding that makes mac fail. |
waywardmonkeys
left a comment
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.
Yes, I was going to suggest the same thing.
|
There are more |
I think I it is fine to file an issue for them to track this in hybrid. |
DJMcNab
left a comment
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.
I'd like to block on having a properly explained SAFETY comment here (i.e. that we only call this with shaders we have written as developers of Vello, which we believe to not have any buffer overruns)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
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.
Thanks! In theory, each array access in the shaders and loop declaration should now have a SAFETY comment as well, but I don't think anyone has the will to actually do that
In servo I observed performance regression with #908: https://xi.zulipchat.com/#narrow/channel/197075-vello/topic/Servo.202D.20canvas.20backend/with/528398019
but disabling shader runtime checks gives it back on pre #908.