Changeset 243456 in webkit
- Timestamp:
- Mar 25, 2019, 2:10:38 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 28 edited
- 1 copied
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/webgpu/adapter-options.html (modified) (3 diffs)
-
LayoutTests/webgpu/bind-groups.html (modified) (1 diff)
-
LayoutTests/webgpu/map-read-buffers.html (modified) (1 diff)
-
LayoutTests/webgpu/map-write-buffers.html (modified) (1 diff)
-
LayoutTests/webgpu/pipeline-layouts.html (modified) (1 diff)
-
LayoutTests/webgpu/queue-creation.html (modified) (1 diff)
-
LayoutTests/webgpu/render-command-encoding.html (modified) (1 diff)
-
LayoutTests/webgpu/render-pipelines.html (modified) (1 diff)
-
LayoutTests/webgpu/textures-textureviews.html (modified) (3 diffs)
-
LayoutTests/webgpu/webgpu-enabled.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPU.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUAdapter.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUBindGroup.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUBindGroupLayout.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUBuffer.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUDevice.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUInputStepMode.h (copied) (copied from trunk/Source/WebCore/Modules/webgpu/WebGPUTextureView.idl ) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUProgrammablePassEncoder.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUQueue.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPURenderPassEncoder.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPURenderPipeline.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUSampler.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUTexture.idl (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WebGPUTextureView.idl (modified) (1 diff)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (2 diffs)
-
Source/WebCore/bindings/js/WebCoreBuiltinNames.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r243452 r243456 1 2019-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 1 14 2019-03-25 Joseph Pecoraro <pecoraro@apple.com> 2 15 -
trunk/LayoutTests/webgpu/adapter-options.html
r243438 r243456 10 10 const device = await defaultAdapter.requestDevice(); 11 11 12 assert_true(device instanceof GPUDevice, "Default device successfully created.");12 assert_true(device instanceof WebGPUDevice, "Default device successfully created."); 13 13 }, "Create the default device."); 14 14 … … 17 17 const device = await lowPowerAdapter.requestDevice(); 18 18 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."); 20 20 }, "Create a device with a low-power option."); 21 21 … … 24 24 const device = await highPerfAdapter.requestDevice(); 25 25 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."); 27 27 }, "Create a device with a high-performance option."); 28 28 </script> -
trunk/LayoutTests/webgpu/bind-groups.html
r243438 r243456 25 25 26 26 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.") 28 28 }, "Create a basic WebGPUBindGroup via WebGPUDevice.") 29 29 </script> -
trunk/LayoutTests/webgpu/map-read-buffers.html
r243438 r243456 13 13 promise_test(async () => { 14 14 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"); 16 16 17 17 let array = new Float32Array([1, 2, 3, 4]); -
trunk/LayoutTests/webgpu/map-write-buffers.html
r243438 r243456 13 13 promise_test(async () => { 14 14 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"); 16 16 17 17 let arrayBuffer = await buffer.mapWriteAsync(); -
trunk/LayoutTests/webgpu/pipeline-layouts.html
r243438 r243456 25 25 const device = await getBasicDevice(); 26 26 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"); 28 28 29 29 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"); 31 31 }, "Create a basic WebGPUPipelineLayout wtih a WebGPUDevice."); 32 32 </script> -
trunk/LayoutTests/webgpu/queue-creation.html
r243438 r243456 16 16 17 17 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."); 19 19 20 20 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."); 22 22 23 23 const queue = device.getQueue(); 24 assert_true(queue instanceof GPUQueue, "getQueue returned a WebGPUQueue.");24 assert_true(queue instanceof WebGPUQueue, "getQueue returned a WebGPUQueue."); 25 25 26 26 queue.label = "Example label"; -
trunk/LayoutTests/webgpu/render-command-encoding.html
r243438 r243456 39 39 40 40 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"); 42 42 43 43 encoder.setPipeline(pipeline); -
trunk/LayoutTests/webgpu/render-pipelines.html
r243438 r243456 49 49 50 50 const pipeline = createBasicPipeline(shaderModule, device, pipelineLayout); 51 assert_true(pipeline instanceof GPURenderPipeline, "Successfully created WebGPURenderPipeline");51 assert_true(pipeline instanceof WebGPURenderPipeline, "Successfully created WebGPURenderPipeline"); 52 52 }, "Create basic WebGPURenderPipeline"); 53 53 </script> -
trunk/LayoutTests/webgpu/textures-textureviews.html
r243438 r243456 32 32 33 33 const texture = swapChain.getCurrentTexture(); 34 assert_true(texture instanceof GPUTexture, "Successfully acquired next texture.");34 assert_true(texture instanceof WebGPUTexture, "Successfully acquired next texture."); 35 35 36 36 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."); 38 38 }, "Create texture view from swap chain."); 39 39 40 40 promise_test(async () => { 41 41 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."); 43 43 }, "Create basic depth texture from device."); 44 44 … … 49 49 50 50 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."); 52 52 }, "Create basic 4x multisampled texture."); 53 53 … … 58 58 59 59 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."); 61 61 }, "Create basic 3D texture from device."); 62 62 -
trunk/LayoutTests/webgpu/webgpu-enabled.html
r243438 r243456 14 14 15 15 const adapter = await window.gpu.requestAdapter(); 16 assert_true(adapter instanceof GPUAdapter, "Created default GPUAdapter.");16 assert_true(adapter instanceof WebGPUAdapter, "Created default GPUAdapter."); 17 17 18 18 const device = await adapter.requestDevice(); 19 assert_true(device instanceof GPUDevice, "Created GPUDevice.");19 assert_true(device instanceof WebGPUDevice, "Created GPUDevice."); 20 20 }, "Web GPU is enabled."); 21 21 </script> -
trunk/Source/WebCore/ChangeLog
r243451 r243456 1 2019-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 1 14 2019-03-25 Eric Carlson <eric.carlson@apple.com> 2 15 -
trunk/Source/WebCore/Modules/webgpu/WebGPU.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPU 30 ImplementationLacksVTable 32 31 ] interface WebGPU { 33 32 Promise<WebGPUAdapter> requestAdapter(optional GPURequestAdapterOptions options); -
trunk/Source/WebCore/Modules/webgpu/WebGPUAdapter.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPUAdapter 30 ImplementationLacksVTable 32 31 ] interface WebGPUAdapter { 33 32 // readonly attribute DOMString name; -
trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroup.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPUBindGroup 30 ImplementationLacksVTable 32 31 ] interface WebGPUBindGroup { 33 32 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUBindGroupLayout.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPUBindGroupLayout 30 ImplementationLacksVTable 32 31 ] interface WebGPUBindGroupLayout { 33 32 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUBuffer.idl
r243438 r243456 30 30 Conditional=WEBGPU, 31 31 EnabledAtRuntime=WebGPU, 32 ImplementationLacksVTable, 33 InterfaceName=GPUBuffer 32 ImplementationLacksVTable 34 33 ] interface WebGPUBuffer { 35 34 void setSubData(u64 offset, ArrayBuffer data); -
trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.idl
r243438 r243456 40 40 Conditional=WEBGPU, 41 41 EnabledAtRuntime=WebGPU, 42 ImplementationLacksVTable, 43 InterfaceName=GPUDevice 42 ImplementationLacksVTable 44 43 ] interface WebGPUDevice { 45 44 readonly attribute WebGPUAdapter adapter; -
trunk/Source/WebCore/Modules/webgpu/WebGPUInputStepMode.h
r243455 r243456 23 23 * THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 // https://github.com/gpuweb/gpuweb/blob/master/design/sketch.webidl26 25 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 32 namespace WebCore { 33 34 using WebGPUInputStepMode = GPUInputStepMode; 35 36 } // namespace WebCore 37 38 #endif // ENABLE(WEBGPU) -
trunk/Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPUPipelineLayout 30 ImplementationLacksVTable 32 31 ] interface WebGPUPipelineLayout { 33 32 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUProgrammablePassEncoder.idl
r243438 r243456 30 30 Conditional=WEBGPU, 31 31 EnabledAtRuntime=WebGPU, 32 InterfaceName=GPUProgrammablePassEncoder,33 32 SkipVTableValidation 34 33 ] interface WebGPUProgrammablePassEncoder { -
trunk/Source/WebCore/Modules/webgpu/WebGPUQueue.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPUQueue 30 ImplementationLacksVTable 32 31 ] interface WebGPUQueue { 33 32 void submit(sequence<WebGPUCommandBuffer> buffers); -
trunk/Source/WebCore/Modules/webgpu/WebGPURenderPassEncoder.idl
r243438 r243456 31 31 Conditional=WEBGPU, 32 32 EnabledAtRuntime=WebGPU, 33 InterfaceName=GPURenderPassEncoder,34 33 JSGenerateToJSObject 35 34 ] interface WebGPURenderPassEncoder : WebGPUProgrammablePassEncoder { -
trunk/Source/WebCore/Modules/webgpu/WebGPURenderPipeline.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPURenderPipeline 30 ImplementationLacksVTable 32 31 ] interface WebGPURenderPipeline { 33 32 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUSampler.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPUSampler 30 ImplementationLacksVTable 32 31 ] interface WebGPUSampler { 33 32 }; -
trunk/Source/WebCore/Modules/webgpu/WebGPUTexture.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPUTexture 30 ImplementationLacksVTable 32 31 ] interface WebGPUTexture { 33 32 WebGPUTextureView createDefaultView(); -
trunk/Source/WebCore/Modules/webgpu/WebGPUTextureView.idl
r243438 r243456 28 28 Conditional=WEBGPU, 29 29 EnabledAtRuntime=WebGPU, 30 ImplementationLacksVTable, 31 InterfaceName=GPUTextureView 30 ImplementationLacksVTable 32 31 ] interface WebGPUTextureView { 33 32 }; -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r243450 r243456 14128 14128 D0615FCD217FE5C6008A48A8 /* WebGPUShaderModule.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebGPUShaderModule.cpp; sourceTree = "<group>"; }; 14129 14129 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>"; }; 14130 14131 D06A9A2122026C7A0083C662 /* GPURequestAdapterOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GPURequestAdapterOptions.h; sourceTree = "<group>"; }; 14131 14132 D06C0D8D0CFD11460065F43F /* RemoveFormatCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoveFormatCommand.h; sourceTree = "<group>"; }; … … 26277 26278 D00F595221701D8C000D71DB /* WebGPUDevice.h */, 26278 26279 D00F595421701D8C000D71DB /* WebGPUDevice.idl */, 26280 D063AE4621C06626000E6A35 /* WebGPUInputStepMode.h */, 26279 26281 D0C419F02183EB31009EC1DE /* WebGPUPipelineDescriptorBase.h */, 26280 26282 D0C419F12183EB31009EC1DE /* WebGPUPipelineDescriptorBase.idl */, -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r243438 r243456 82 82 macro(GamepadButton) \ 83 83 macro(GamepadEvent) \ 84 macro(GPU) \85 macro(GPUAdapter) \86 macro(GPUBindGroup) \87 macro(GPUBindGroupLayout) \88 macro(GPUBuffer) \89 84 macro(GPUBufferUsage) \ 90 85 macro(GPUCanvasContext) \ … … 94 89 macro(GPUComputePassEncoder) \ 95 90 macro(GPUComputePipeline) \ 96 macro(GPUDevice) \97 macro(GPUPipelineLayout) \98 macro(GPUProgrammablePassEncoder) \99 macro(GPUQueue) \100 macro(GPURenderPassEncoder) \101 macro(GPURenderPipeline) \102 macro(GPUSampler) \103 91 macro(GPUShaderStageBit) \ 104 92 macro(GPUSwapChain) \ 105 macro(GPUTexture) \106 93 macro(GPUTextureUsage) \ 107 macro(GPUTextureView) \108 94 macro(HTMLAttachmentElement) \ 109 95 macro(HTMLAudioElement) \ … … 215 201 macro(WebGL2RenderingContext) \ 216 202 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) \ 217 220 macro(WebMetalBuffer) \ 218 221 macro(WebMetalCommandBuffer) \
Note:
See TracChangeset
for help on using the changeset viewer.