⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243456 in webkit


Ignore:
Timestamp:
Mar 25, 2019, 2:10:38 PM (7 years ago)
Author:
Truitt Savell
Message:

Unreviewed, rolling out r243438.

243319 Caused Mac WK2 testers to crash and become
unresponsive.

Reverted changeset:

"Update WebGPU class names based on sketch.idl"
https://bugs.webkit.org/show_bug.cgi?id=194260
https://trac.webkit.org/changeset/243438

Location:
trunk
Files:
28 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243452 r243456  
     12019-03-25  Truitt Savell  <tsavell@apple.com>
     2
     3        Unreviewed, rolling out r243438.
     4
     5        243319 Caused Mac WK2 testers to crash and become
     6        unresponsive.
     7
     8        Reverted changeset:
     9
     10        "Update WebGPU class names based on sketch.idl"
     11        https://bugs.webkit.org/show_bug.cgi?id=194260
     12        https://trac.webkit.org/changeset/243438
     13
    1142019-03-25  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/LayoutTests/webgpu/adapter-options.html

    r243438 r243456  
    1010    const device = await defaultAdapter.requestDevice();
    1111
    12     assert_true(device instanceof GPUDevice, "Default device successfully created.");
     12    assert_true(device instanceof WebGPUDevice, "Default device successfully created.");
    1313}, "Create the default device.");
    1414
     
    1717    const device = await lowPowerAdapter.requestDevice();
    1818
    19     assert_true(device instanceof GPUDevice, "Device successfully created using low-power option.");
     19    assert_true(device instanceof WebGPUDevice, "Device successfully created using low-power option.");
    2020}, "Create a device with a low-power option.");
    2121
     
    2424    const device = await highPerfAdapter.requestDevice();
    2525
    26     assert_true(device instanceof GPUDevice, "Device successfully created using high-performance option.");
     26    assert_true(device instanceof WebGPUDevice, "Device successfully created using high-performance option.");
    2727}, "Create a device with a high-performance option.");
    2828</script>
  • trunk/LayoutTests/webgpu/bind-groups.html

    r243438 r243456  
    2525
    2626    const bindGroup = device.createBindGroup({ layout: bindGroupLayout, bindings: [bindGroupBinding]});
    27     assert_true(bindGroup instanceof GPUBindGroup, "WebGPUBindGroup successfully created.")
     27    assert_true(bindGroup instanceof WebGPUBindGroup, "WebGPUBindGroup successfully created.")
    2828}, "Create a basic WebGPUBindGroup via WebGPUDevice.")
    2929</script>
  • trunk/LayoutTests/webgpu/map-read-buffers.html

    r243438 r243456  
    1313    promise_test(async () => {
    1414        const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.TRANSFER_DST | GPUBufferUsage.MAP_READ });
    15         assert_true(buffer instanceof GPUBuffer, "createBuffer returned a WebGPUBuffer");
     15        assert_true(buffer instanceof WebGPUBuffer, "createBuffer returned a WebGPUBuffer");
    1616
    1717        let array = new Float32Array([1, 2, 3, 4]);
  • trunk/LayoutTests/webgpu/map-write-buffers.html

    r243438 r243456  
    1313    promise_test(async () => {
    1414        const buffer = device.createBuffer({ size: 16, usage: GPUBufferUsage.MAP_WRITE });
    15         assert_true(buffer instanceof GPUBuffer, "createBuffer returned a WebGPUBuffer");
     15        assert_true(buffer instanceof WebGPUBuffer, "createBuffer returned a WebGPUBuffer");
    1616
    1717        let arrayBuffer = await buffer.mapWriteAsync();
  • trunk/LayoutTests/webgpu/pipeline-layouts.html

    r243438 r243456  
    2525    const device = await getBasicDevice();
    2626    const bindGroupLayout = device.createBindGroupLayout({ bindings: [createBindGroupLayoutBinding()] });
    27     assert_true(bindGroupLayout instanceof GPUBindGroupLayout, "createBindGroupLayout returned a WebGPUBindGroupLayout");
     27    assert_true(bindGroupLayout instanceof WebGPUBindGroupLayout, "createBindGroupLayout returned a WebGPUBindGroupLayout");
    2828
    2929    const pipelineLayout = device.createPipelineLayout({ bindGroupLayouts: [bindGroupLayout] });
    30     assert_true(pipelineLayout instanceof GPUPipelineLayout, "createPipelineLayout returned a WebGPUPipelineLayout");
     30    assert_true(pipelineLayout instanceof WebGPUPipelineLayout, "createPipelineLayout returned a WebGPUPipelineLayout");
    3131}, "Create a basic WebGPUPipelineLayout wtih a WebGPUDevice.");
    3232</script>
  • trunk/LayoutTests/webgpu/queue-creation.html

    r243438 r243456  
    1616
    1717    const adapter = await window.gpu.requestAdapter({});
    18     assert_true(adapter instanceof GPUAdapter, "requestAdapter returned a WebGPUAdapter.");
     18    assert_true(adapter instanceof WebGPUAdapter, "requestAdapter returned a WebGPUAdapter.");
    1919
    2020    const device = await adapter.requestDevice();
    21     assert_true(device instanceof GPUDevice, "requestDevice returned a WebGPUDevice.");
     21    assert_true(device instanceof WebGPUDevice, "requestDevice returned a WebGPUDevice.");
    2222
    2323    const queue = device.getQueue();
    24     assert_true(queue instanceof GPUQueue, "getQueue returned a WebGPUQueue.");
     24    assert_true(queue instanceof WebGPUQueue, "getQueue returned a WebGPUQueue.");
    2525
    2626    queue.label = "Example label";
  • trunk/LayoutTests/webgpu/render-command-encoding.html

    r243438 r243456  
    3939
    4040    const encoder = beginBasicRenderPass(swapChain, commandEncoder);
    41     assert_true(encoder instanceof GPURenderPassEncoder, "beginRenderPass() returned a WebGPURenderPassEncoder");
     41    assert_true(encoder instanceof WebGPURenderPassEncoder, "beginRenderPass() returned a WebGPURenderPassEncoder");
    4242
    4343    encoder.setPipeline(pipeline);
  • trunk/LayoutTests/webgpu/render-pipelines.html

    r243438 r243456  
    4949
    5050    const pipeline = createBasicPipeline(shaderModule, device, pipelineLayout);
    51     assert_true(pipeline instanceof GPURenderPipeline, "Successfully created WebGPURenderPipeline");
     51    assert_true(pipeline instanceof WebGPURenderPipeline, "Successfully created WebGPURenderPipeline");
    5252}, "Create basic WebGPURenderPipeline");
    5353</script>
  • trunk/LayoutTests/webgpu/textures-textureviews.html

    r243438 r243456  
    3232
    3333    const texture = swapChain.getCurrentTexture();
    34     assert_true(texture instanceof GPUTexture, "Successfully acquired next texture.");
     34    assert_true(texture instanceof WebGPUTexture, "Successfully acquired next texture.");
    3535
    3636    const textureView = texture.createDefaultView();
    37     assert_true(textureView instanceof GPUTextureView, "Successfully created texture view from next texture.");
     37    assert_true(textureView instanceof WebGPUTextureView, "Successfully created texture view from next texture.");
    3838}, "Create texture view from swap chain.");
    3939
    4040promise_test(async () => {
    4141    const depthTexture = device.createTexture(texDescriptor);
    42     assert_true(depthTexture instanceof GPUTexture, "Successfully created depth texture.");
     42    assert_true(depthTexture instanceof WebGPUTexture, "Successfully created depth texture.");
    4343}, "Create basic depth texture from device.");
    4444
     
    4949
    5050    const multisampledTexture = device.createTexture(texDescriptor);
    51     assert_true(multisampledTexture instanceof GPUTexture, "Successfully created multisampled texture.");
     51    assert_true(multisampledTexture instanceof WebGPUTexture, "Successfully created multisampled texture.");
    5252}, "Create basic 4x multisampled texture.");
    5353
     
    5858
    5959    const texture3d = device.createTexture(texDescriptor);
    60     assert_true(texture3d instanceof GPUTexture, "Successfully created basic 3D texture.");
     60    assert_true(texture3d instanceof WebGPUTexture, "Successfully created basic 3D texture.");
    6161}, "Create basic 3D texture from device.");
    6262
  • trunk/LayoutTests/webgpu/webgpu-enabled.html

    r243438 r243456  
    1414
    1515    const adapter = await window.gpu.requestAdapter();
    16     assert_true(adapter instanceof GPUAdapter, "Created default GPUAdapter.");
     16    assert_true(adapter instanceof WebGPUAdapter, "Created default GPUAdapter.");
    1717   
    1818    const device = await adapter.requestDevice();
    19     assert_true(device instanceof GPUDevice, "Created GPUDevice.");
     19    assert_true(device instanceof WebGPUDevice, "Created GPUDevice.");
    2020}, "Web GPU is enabled.");
    2121</script>
  • trunk/Source/WebCore/ChangeLog

    r243451 r243456  
     12019-03-25  Truitt Savell  <tsavell@apple.com>
     2
     3        Unreviewed, rolling out r243438.
     4
     5        243319 Caused Mac WK2 testers to crash and become
     6        unresponsive.
     7
     8        Reverted changeset:
     9
     10        "Update WebGPU class names based on sketch.idl"
     11        https://bugs.webkit.org/show_bug.cgi?id=194260
     12        https://trac.webkit.org/changeset/243438
     13
    1142019-03-25  Eric Carlson  <eric.carlson@apple.com>
    215
  • trunk/Source/WebCore/Modules/webgpu/WebGPU.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPU
     30    ImplementationLacksVTable
    3231] interface WebGPU {
    3332    Promise<WebGPUAdapter> requestAdapter(optional GPURequestAdapterOptions options);
  • trunk/Source/WebCore/Modules/webgpu/WebGPUAdapter.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUAdapter
     30    ImplementationLacksVTable
    3231] interface WebGPUAdapter {
    3332    // readonly attribute DOMString name;
  • trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroup.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUBindGroup
     30    ImplementationLacksVTable
    3231] interface WebGPUBindGroup {
    3332};
  • trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroupLayout.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUBindGroupLayout
     30    ImplementationLacksVTable
    3231] interface WebGPUBindGroupLayout {
    3332};
  • trunk/Source/WebCore/Modules/webgpu/WebGPUBuffer.idl

    r243438 r243456  
    3030    Conditional=WEBGPU,
    3131    EnabledAtRuntime=WebGPU,
    32     ImplementationLacksVTable,
    33     InterfaceName=GPUBuffer
     32    ImplementationLacksVTable
    3433] interface WebGPUBuffer {
    3534    void setSubData(u64 offset, ArrayBuffer data);
  • trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.idl

    r243438 r243456  
    4040    Conditional=WEBGPU,
    4141    EnabledAtRuntime=WebGPU,
    42     ImplementationLacksVTable,
    43     InterfaceName=GPUDevice
     42    ImplementationLacksVTable
    4443] interface WebGPUDevice {
    4544    readonly attribute WebGPUAdapter adapter;
  • trunk/Source/WebCore/Modules/webgpu/WebGPUInputStepMode.h

    r243455 r243456  
    2323 * THE POSSIBILITY OF SUCH DAMAGE.
    2424 */
    25 // https://github.com/gpuweb/gpuweb/blob/master/design/sketch.webidl
    2625
    27 [
    28     Conditional=WEBGPU,
    29     EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUTextureView
    32 ] interface WebGPUTextureView {
    33 };
     26#pragma once
     27
     28#if ENABLE(WEBGPU)
     29
     30#include "GPUVertexInputDescriptor.h"
     31
     32namespace WebCore {
     33
     34using WebGPUInputStepMode = GPUInputStepMode;
     35
     36} // namespace WebCore
     37
     38#endif // ENABLE(WEBGPU)
  • trunk/Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUPipelineLayout
     30    ImplementationLacksVTable
    3231] interface WebGPUPipelineLayout {
    3332};
  • trunk/Source/WebCore/Modules/webgpu/WebGPUProgrammablePassEncoder.idl

    r243438 r243456  
    3030    Conditional=WEBGPU,
    3131    EnabledAtRuntime=WebGPU,
    32     InterfaceName=GPUProgrammablePassEncoder,
    3332    SkipVTableValidation
    3433] interface WebGPUProgrammablePassEncoder {
  • trunk/Source/WebCore/Modules/webgpu/WebGPUQueue.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUQueue
     30    ImplementationLacksVTable
    3231] interface WebGPUQueue {
    3332    void submit(sequence<WebGPUCommandBuffer> buffers);
  • trunk/Source/WebCore/Modules/webgpu/WebGPURenderPassEncoder.idl

    r243438 r243456  
    3131    Conditional=WEBGPU,
    3232    EnabledAtRuntime=WebGPU,
    33     InterfaceName=GPURenderPassEncoder,
    3433    JSGenerateToJSObject
    3534] interface WebGPURenderPassEncoder : WebGPUProgrammablePassEncoder {
  • trunk/Source/WebCore/Modules/webgpu/WebGPURenderPipeline.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPURenderPipeline
     30    ImplementationLacksVTable
    3231] interface WebGPURenderPipeline {
    3332};
  • trunk/Source/WebCore/Modules/webgpu/WebGPUSampler.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUSampler
     30    ImplementationLacksVTable
    3231] interface WebGPUSampler {
    3332};
  • trunk/Source/WebCore/Modules/webgpu/WebGPUTexture.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUTexture
     30    ImplementationLacksVTable
    3231] interface WebGPUTexture {
    3332    WebGPUTextureView createDefaultView();
  • trunk/Source/WebCore/Modules/webgpu/WebGPUTextureView.idl

    r243438 r243456  
    2828    Conditional=WEBGPU,
    2929    EnabledAtRuntime=WebGPU,
    30     ImplementationLacksVTable,
    31     InterfaceName=GPUTextureView
     30    ImplementationLacksVTable
    3231] interface WebGPUTextureView {
    3332};
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r243450 r243456  
    1412814128                D0615FCD217FE5C6008A48A8 /* WebGPUShaderModule.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebGPUShaderModule.cpp; sourceTree = "<group>"; };
    1412914129                D0615FCE217FE5C6008A48A8 /* WebGPUShaderModule.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebGPUShaderModule.idl; sourceTree = "<group>"; };
     14130                D063AE4621C06626000E6A35 /* WebGPUInputStepMode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebGPUInputStepMode.h; sourceTree = "<group>"; };
    1413014131                D06A9A2122026C7A0083C662 /* GPURequestAdapterOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPURequestAdapterOptions.h; sourceTree = "<group>"; };
    1413114132                D06C0D8D0CFD11460065F43F /* RemoveFormatCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoveFormatCommand.h; sourceTree = "<group>"; };
     
    2627726278                                D00F595221701D8C000D71DB /* WebGPUDevice.h */,
    2627826279                                D00F595421701D8C000D71DB /* WebGPUDevice.idl */,
     26280                                D063AE4621C06626000E6A35 /* WebGPUInputStepMode.h */,
    2627926281                                D0C419F02183EB31009EC1DE /* WebGPUPipelineDescriptorBase.h */,
    2628026282                                D0C419F12183EB31009EC1DE /* WebGPUPipelineDescriptorBase.idl */,
  • trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h

    r243438 r243456  
    8282    macro(GamepadButton) \
    8383    macro(GamepadEvent) \
    84     macro(GPU) \
    85     macro(GPUAdapter) \
    86     macro(GPUBindGroup) \
    87     macro(GPUBindGroupLayout) \
    88     macro(GPUBuffer) \
    8984    macro(GPUBufferUsage) \
    9085    macro(GPUCanvasContext) \
     
    9489    macro(GPUComputePassEncoder) \
    9590    macro(GPUComputePipeline) \
    96     macro(GPUDevice) \
    97     macro(GPUPipelineLayout) \
    98     macro(GPUProgrammablePassEncoder) \
    99     macro(GPUQueue) \
    100     macro(GPURenderPassEncoder) \
    101     macro(GPURenderPipeline) \
    102     macro(GPUSampler) \
    10391    macro(GPUShaderStageBit) \
    10492    macro(GPUSwapChain) \
    105     macro(GPUTexture) \
    10693    macro(GPUTextureUsage) \
    107     macro(GPUTextureView) \
    10894    macro(HTMLAttachmentElement) \
    10995    macro(HTMLAudioElement) \
     
    215201    macro(WebGL2RenderingContext) \
    216202    macro(WebGLVertexArrayObject) \
     203    macro(WebGPU) \
     204    macro(WebGPUAdapter) \
     205    macro(WebGPUBindGroup) \
     206    macro(WebGPUBindGroupLayout) \
     207    macro(WebGPUBuffer) \
     208    macro(WebGPUDevice) \
     209    macro(WebGPUIndexFormat) \
     210    macro(WebGPUInputStepMode) \
     211    macro(WebGPUQueue) \
     212    macro(WebGPUPipelineLayout) \
     213    macro(WebGPUProgrammablePassEncoder) \
     214    macro(WebGPURenderPassEncoder) \
     215    macro(WebGPURenderPipeline) \
     216    macro(WebGPUSampler) \
     217    macro(WebGPUTexture) \
     218    macro(WebGPUTextureView) \
     219    macro(WebGPUVertexFormat) \
    217220    macro(WebMetalBuffer) \
    218221    macro(WebMetalCommandBuffer) \
Note: See TracChangeset for help on using the changeset viewer.