[WHLSL] Hook up compute
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jun 2019 06:28:01 +0000 (06:28 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jun 2019 06:28:01 +0000 (06:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=198644

Unreviewed build fix. Release iOS build would complain that pipelineState was unused.

* platform/graphics/gpu/cocoa/GPUComputePassEncoderMetal.mm:
(WebCore::GPUComputePassEncoder::dispatch):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246397 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gpu/cocoa/GPUComputePassEncoderMetal.mm

index 234d6f6..da8ea14 100644 (file)
@@ -1,3 +1,13 @@
+2019-06-12  Antoine Quint  <graouts@apple.com>
+
+        [WHLSL] Hook up compute
+        https://bugs.webkit.org/show_bug.cgi?id=198644
+
+        Unreviewed build fix. Release iOS build would complain that pipelineState was unused.
+
+        * platform/graphics/gpu/cocoa/GPUComputePassEncoderMetal.mm:
+        (WebCore::GPUComputePassEncoder::dispatch):
+
 2019-06-12  Myles C. Maxfield  <mmaxfield@apple.com>
 
         [WHLSL] Hook up compute
index 6bd28f7..a5b7ca9 100644 (file)
@@ -92,8 +92,7 @@ void GPUComputePassEncoder::dispatch(unsigned x, unsigned y, unsigned z)
         return;
     }
 
-    auto pipelineState = m_pipeline->platformComputePipeline();
-    ASSERT(pipelineState);
+    ASSERT(m_pipeline->platformComputePipeline());
 
     BEGIN_BLOCK_OBJC_EXCEPTIONS;