[webkit-changes] [WebKit/WebKit] 1487bf: [WebGPU] incorrect value passed to resolveCounters

mwyrzykowski noreply at github.com
Mon Feb 17 00:22:09 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1487bfe01d6bee3def47d1042e26e54b9f00c242
      https://github.com/WebKit/WebKit/commit/1487bfe01d6bee3def47d1042e26e54b9f00c242
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2025-02-17 (Mon, 17 Feb 2025)

  Changed paths:
    A LayoutTests/fast/webgpu/nocrash/fuzz-287761-expected.txt
    A LayoutTests/fast/webgpu/nocrash/fuzz-287761.html
    M Source/WebGPU/WebGPU/CommandEncoder.mm

  Log Message:
  -----------
  [WebGPU] incorrect value passed to resolveCounters
https://bugs.webkit.org/show_bug.cgi?id=287761
rdar://144921860

Reviewed by Tadeu Zagallo.

We were passing [0, querySet.count()) instead of [firstQuery, queryCount)
as the JS API requires.

This was incorrect and led to data being copied into the output buffer
from the wrong location.

* LayoutTests/fast/webgpu/nocrash/fuzz-287761-expected.txt: Added.
* LayoutTests/fast/webgpu/nocrash/fuzz-287761.html: Added.
Add regression test.

* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::CommandEncoder::resolveQuerySet):

Canonical link: https://commits.webkit.org/290472@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list