Skip to content

webgpu: Implement GPUDebugCommandsMixin - #45489

Merged
jschwe merged 2 commits into
servo:mainfrom
jschwe:jschwender/webgpu-debug-markers
Jun 11, 2026
Merged

jschwe merged 2 commits into
servo:mainfrom
jschwe:jschwender/webgpu-debug-markers

Conversation

@jschwe

@jschwe jschwe commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

spookyball.com seems to require these commands.

Testing: New webgpu tests pass, see try run
Fixes: Part of #45474

This fixes spookyball.com.

Signed-off-by: Jonathan Schwender <[email protected]>
#[expect(unsafe_code)]
fn PushDebugGroup(&self, group_label: USVString) {
if let Some(encoder) = self.render_bundle_encoder.borrow_mut().as_mut() {
let label = CString::new(group_label.0).unwrap_or_default();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@sagudev

sagudev commented Jun 8, 2026

Copy link
Copy Markdown
Member

BTW RenderBundles are conceptually broken (due to wgpu) so don't bother to much if there are some crashes/failures there.

@jschwe

jschwe commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

I ran ./mach update-wpt https://github.com/jschwe/servo/actions/runs/27192587787, but the local diff is huge, much larger than the 10 stable unexpected results the status reports. Is there a different way to update cts tests?

@sagudev

sagudev commented Jun 9, 2026

Copy link
Copy Markdown
Member

I ran ./mach update-wpt https://github.com/jschwe/servo/actions/runs/27192587787, but the local diff is huge, much larger than the 10 stable unexpected results the status reports. Is there a different way to update cts tests?

Yes: https://book.servo.org/design-documentation/webgpu.html#updating-webgpu-cts-expectations. But do run tests that have changed results locally as otherwise we will be flipping flakes too.

@jschwe jschwe mentioned this pull request Jun 9, 2026
2 of 7 tasks
@jschwe

jschwe commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

Bit offtopic for this PR, but should your fork moz-webgpu-cts perhaps be moved under the servo org if it's the recommended way to update test expectations?

@sagudev

sagudev commented Jun 9, 2026

Copy link
Copy Markdown
Member

Bit offtopic for this PR, but should your fork moz-webgpu-cts perhaps be moved under the servo org if it's the recommended way to update test expectations?

The plan was to upstream changes, but that got stalled. I will try more this summer.

Signed-off-by: Jonathan Schwender <[email protected]>
@jschwe

jschwe commented Jun 11, 2026

Copy link
Copy Markdown
Member Author

I used --preset reset-contradictory (plus a bit of manual checking, rerunning CTS now), since the default set preset seemed to change too much. Is that correct? In that case I would open a PR to the book and mention that preset, since it took me a while.

@sagudev

sagudev commented Jun 11, 2026

Copy link
Copy Markdown
Member

I used --preset reset-contradictory (plus a bit of manual checking, rerunning CTS now), since the default set preset seemed to change too much. Is that correct? In that case I would open a PR to the book and mention that preset, since it took me a while.

Did you run only effected test locally and use that json file for expectation set? If you use whole file that was created in CI then this would set all expectations to the current run.

@jschwe

jschwe commented Jun 11, 2026

Copy link
Copy Markdown
Member Author

I was using the CI run, since I'm on macos, so I'm assuming running locally would produce relevant differences. I guess I can run on a linux machine tonight.

@jschwe
jschwe marked this pull request as ready for review June 11, 2026 14:02
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jun 11, 2026
@jschwe

jschwe commented Jun 11, 2026

Copy link
Copy Markdown
Member Author

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jun 11, 2026
@jschwe
jschwe added this pull request to the merge queue Jun 11, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jun 11, 2026
Merged via the queue into servo:main with commit ad831ec Jun 11, 2026
35 checks passed
@jschwe
jschwe deleted the jschwender/webgpu-debug-markers branch June 11, 2026 20:17
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jun 11, 2026
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.

3 participants