Title: [243105] trunk
- Revision
- 243105
- Author
- [email protected]
- Date
- 2019-03-18 14:30:58 -0700 (Mon, 18 Mar 2019)
Log Message
[WHLSL] Hook up the compiler to our WebGPU implementation
https://bugs.webkit.org/show_bug.cgi?id=195509
Unreviewed.
Update after r243091.
Source/WebCore:
* Modules/webgpu/WHLSL/WHLSLSynthesizeConstructors.cpp:
* platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm:
(WebCore::trySetWHLSLFunctionsForPipelineDescriptor):
LayoutTests:
* webgpu/whlsl.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (243104 => 243105)
--- trunk/LayoutTests/ChangeLog 2019-03-18 21:27:09 UTC (rev 243104)
+++ trunk/LayoutTests/ChangeLog 2019-03-18 21:30:58 UTC (rev 243105)
@@ -1,3 +1,14 @@
+2019-03-18 Myles C. Maxfield <[email protected]>
+
+ [WHLSL] Hook up the compiler to our WebGPU implementation
+ https://bugs.webkit.org/show_bug.cgi?id=195509
+
+ Unreviewed.
+
+ Update after r243091.
+
+ * webgpu/whlsl.html:
+
2019-03-18 Wenson Hsieh <[email protected]>
[iOS] Native selection views sometimes appear in hidden editable areas after losing focus
Modified: trunk/LayoutTests/webgpu/whlsl.html (243104 => 243105)
--- trunk/LayoutTests/webgpu/whlsl.html 2019-03-18 21:27:09 UTC (rev 243104)
+++ trunk/LayoutTests/webgpu/whlsl.html 2019-03-18 21:30:58 UTC (rev 243105)
@@ -16,7 +16,7 @@
`;
async function start() {
const adapter = await window.gpu.requestAdapter();
- const device = adapter.createDevice();
+ const device = await adapter.requestDevice();
const shaderModule = device.createShaderModule({code: shaderSource, isWHLSL: true});
const vertexStage = {module: shaderModule, entryPoint: "vertexShader"};
@@ -93,7 +93,7 @@
const swapChainDescriptor = {context, format: "bgra8unorm"};
const swapChain = device.createSwapChain(swapChainDescriptor);
const outputTexture = swapChain.getCurrentTexture();
- const outputTextureView = outputTexture.createDefaultTextureView(); // createDefaultView()
+ const outputTextureView = outputTexture.createDefaultView(); // createDefaultView()
const commandEncoder = device.createCommandEncoder(); // {}
const red = {r: 0, g: 0, b: 1, a: 1};
Modified: trunk/Source/WebCore/ChangeLog (243104 => 243105)
--- trunk/Source/WebCore/ChangeLog 2019-03-18 21:27:09 UTC (rev 243104)
+++ trunk/Source/WebCore/ChangeLog 2019-03-18 21:30:58 UTC (rev 243105)
@@ -1,3 +1,16 @@
+2019-03-18 Myles C. Maxfield <[email protected]>
+
+ [WHLSL] Hook up the compiler to our WebGPU implementation
+ https://bugs.webkit.org/show_bug.cgi?id=195509
+
+ Unreviewed.
+
+ Update after r243091.
+
+ * Modules/webgpu/WHLSL/WHLSLSynthesizeConstructors.cpp:
+ * platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm:
+ (WebCore::trySetWHLSLFunctionsForPipelineDescriptor):
+
2019-03-18 Chris Dumez <[email protected]>
REGRESSION(r236862): early frame decoupling leaves JSC ArrayBuffer objects lingering
Modified: trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLSynthesizeConstructors.cpp (243104 => 243105)
--- trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLSynthesizeConstructors.cpp 2019-03-18 21:27:09 UTC (rev 243104)
+++ trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLSynthesizeConstructors.cpp 2019-03-18 21:30:58 UTC (rev 243105)
@@ -31,6 +31,7 @@
#include "WHLSLArrayType.h"
#include "WHLSLArrayReferenceType.h"
#include "WHLSLEnumerationDefinition.h"
+#include "WHLSLInferTypes.h"
#include "WHLSLNativeFunctionDeclaration.h"
#include "WHLSLNativeTypeDeclaration.h"
#include "WHLSLPointerType.h"
Modified: trunk/Source/WebCore/platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm (243104 => 243105)
--- trunk/Source/WebCore/platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm 2019-03-18 21:27:09 UTC (rev 243104)
+++ trunk/Source/WebCore/platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm 2019-03-18 21:30:58 UTC (rev 243105)
@@ -259,8 +259,6 @@
if (!result)
return false;
- WTFLogAlways("Metal code: %s", result->metalSource.utf8().data());
-
NSError *error = nil;
auto library = adoptNS([device.platformDevice() newLibraryWithSource:result->metalSource options:nil error:&error]);
ASSERT(library);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes