[webkit-changes] [WebKit/WebKit] 2fc583: [WebGPU] Buffer instance can transition from Destr...

mwyrzykowski noreply at github.com
Tue May 21 16:04:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2fc583504218dae11bd3c8ede97f841c3f4c075c
      https://github.com/WebKit/WebKit/commit/2fc583504218dae11bd3c8ede97f841c3f4c075c
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-05-21 (Tue, 21 May 2024)

  Changed paths:
    M LayoutTests/TestExpectations
    A LayoutTests/fast/webgpu/fuzz-128396311-expected.txt
    A LayoutTests/fast/webgpu/fuzz-128396311.html
    M Source/WebGPU/WebGPU/Buffer.h
    M Source/WebGPU/WebGPU/Buffer.mm

  Log Message:
  -----------
  [WebGPU] Buffer instance can transition from Destroyed -> Unmapped state
https://bugs.webkit.org/show_bug.cgi?id=274446
<radar://128396385>

Reviewed by Dan Glastonbury.

Once destroyed, a Buffer is not allowed to be used in any
operations and should remain in the destroyed state.

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

* Source/WebGPU/WebGPU/Buffer.h:
* Source/WebGPU/WebGPU/Buffer.mm:
(WebGPU::Buffer::destroy):
(WebGPU::Buffer::mapAsync):
(WebGPU::Buffer::setState):
(WebGPU::Buffer::unmap):

Canonical link: https://commits.webkit.org/279083@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