Skip to content

Conversation

@sagudev
Copy link
Contributor

@sagudev sagudev commented Jul 12, 2025

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.

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@sagudev
Copy link
Contributor Author

sagudev commented Jul 12, 2025

Copy link
Collaborator

@waywardmonkeys waywardmonkeys left a 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.

@sagudev
Copy link
Contributor Author

sagudev commented Jul 12, 2025

There are more create_shader_module invocations in hybrid, that we could potentially trust, but this PR is focused on vello classic.

@sagudev sagudev added performance Improvements to rendering performance C-classic Applies to the classic `vello` crate labels Jul 12, 2025
@waywardmonkeys
Copy link
Collaborator

There are more create_shader_module invocations in hybrid, that we could potentially trust, but this PR is focused on vello classic.

I think I it is fine to file an issue for them to track this in hybrid.

Copy link
Member

@DJMcNab DJMcNab left a 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>
@sagudev sagudev requested a review from DJMcNab July 14, 2025 08:28
Copy link
Member

@DJMcNab DJMcNab left a 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

@sagudev sagudev added this pull request to the merge queue Jul 14, 2025
Merged via the queue into linebender:main with commit ecf6b28 Jul 14, 2025
17 checks passed
@sagudev sagudev deleted the trusted-sm branch July 14, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-classic Applies to the classic `vello` crate performance Improvements to rendering performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants