[webkit-changes] [WebKit/WebKit] fc7310: [WebGPU] GPUAutoLayout should have special designa...

mwyrzykowski noreply at github.com
Tue Jun 13 14:21:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fc7310ff1cabbb2f44a8259c1fca73f93958396d
      https://github.com/WebKit/WebKit/commit/fc7310ff1cabbb2f44a8259c1fca73f93958396d
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2023-06-13 (Tue, 13 Jun 2023)

  Changed paths:
    M Source/WebCore/Modules/WebGPU/GPUDevice.cpp
    M Source/WebCore/Modules/WebGPU/GPUDevice.h
    M Source/WebCore/PAL/pal/graphics/WebGPU/Impl/WebGPUDeviceImpl.cpp
    M Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUPipelineLayoutDescriptor.h
    M Source/WebGPU/WebGPU/ComputePipeline.mm
    M Source/WebGPU/WebGPU/PipelineLayout.h
    M Source/WebGPU/WebGPU/PipelineLayout.mm
    M Source/WebGPU/WebGPU/RenderPipeline.mm
    M Source/WebKit/Shared/WebGPU/WebGPUPipelineLayoutDescriptor.cpp
    M Source/WebKit/Shared/WebGPU/WebGPUPipelineLayoutDescriptor.h
    M Source/WebKit/Shared/WebGPU/WebGPUPipelineLayoutDescriptor.serialization.in

  Log Message:
  -----------
  [WebGPU] GPUAutoLayout should have special designation
https://bugs.webkit.org/show_bug.cgi?id=257947
<radar://110624583>

Reviewed by Myles C. Maxfield.

Instead of assuming zero bind group layouts == auto layout, use
an optional to track auto layout.

* Source/WebCore/Modules/WebGPU/GPUDevice.cpp:
(WebCore::m_autoPipelineLayout):
(WebCore::GPUDevice::createAutoPipelineLayout):
* Source/WebCore/Modules/WebGPU/GPUDevice.h:
* Source/WebCore/PAL/pal/graphics/WebGPU/Impl/WebGPUDeviceImpl.cpp:
(PAL::WebGPU::DeviceImpl::createPipelineLayout):
* Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUPipelineLayoutDescriptor.h:
* Source/WebGPU/WebGPU/ComputePipeline.mm:
(WebGPU::Device::createComputePipeline):
* Source/WebGPU/WebGPU/PipelineLayout.h:
(WebGPU::PipelineLayout::create):
(WebGPU::PipelineLayout::isValid const):
(WebGPU::PipelineLayout::isAutoLayout const):
* Source/WebGPU/WebGPU/PipelineLayout.mm:
(WebGPU::Device::createPipelineLayout):
(WebGPU::PipelineLayout::PipelineLayout):
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::Device::createRenderPipeline):
(WebKit::WebGPU::ConvertToBackingContext::convertToBacking):
(WebKit::WebGPU::ConvertFromBackingContext::convertFromBacking):
* Source/WebKit/Shared/WebGPU/WebGPUPipelineLayoutDescriptor.h:

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




More information about the webkit-changes mailing list