Title: [292760] trunk/Source/WebGPU
Revision
292760
Author
[email protected]
Date
2022-04-11 21:57:41 -0700 (Mon, 11 Apr 2022)

Log Message

[WebGPU] Fix the tvOS build (again)
https://bugs.webkit.org/show_bug.cgi?id=239106
<rdar://problem/91351306>

Unreviewed.

Turns out PLATFORM(APPLETV) and PLATFORM(TVOS) are different things.

* WebGPU/Texture.mm:
(WebGPU::Device::createTexture):
(WebGPU::Texture::createView):

Modified Paths

Diff

Modified: trunk/Source/WebGPU/ChangeLog (292759 => 292760)


--- trunk/Source/WebGPU/ChangeLog	2022-04-12 03:43:50 UTC (rev 292759)
+++ trunk/Source/WebGPU/ChangeLog	2022-04-12 04:57:41 UTC (rev 292760)
@@ -1,5 +1,19 @@
 2022-04-11  Myles C. Maxfield  <[email protected]>
 
+        [WebGPU] Fix the tvOS build (again)
+        https://bugs.webkit.org/show_bug.cgi?id=239106
+        <rdar://problem/91351306>
+
+        Unreviewed.
+
+        Turns out PLATFORM(APPLETV) and PLATFORM(TVOS) are different things.
+
+        * WebGPU/Texture.mm:
+        (WebGPU::Device::createTexture):
+        (WebGPU::Texture::createView):
+
+2022-04-11  Myles C. Maxfield  <[email protected]>
+
         [WebGPU] Use checked arithmetic
         https://bugs.webkit.org/show_bug.cgi?id=239058
 

Modified: trunk/Source/WebGPU/WebGPU/Texture.mm (292759 => 292760)


--- trunk/Source/WebGPU/WebGPU/Texture.mm	2022-04-12 03:43:50 UTC (rev 292759)
+++ trunk/Source/WebGPU/WebGPU/Texture.mm	2022-04-12 04:57:41 UTC (rev 292760)
@@ -2009,7 +2009,7 @@
         if (descriptor.size.depthOrArrayLayers > 1) {
             textureDescriptor.arrayLength = descriptor.size.depthOrArrayLayers;
             if (descriptor.sampleCount > 1) {
-#if PLATFORM(WATCHOS) || PLATFORM(TVOS)
+#if PLATFORM(WATCHOS) || PLATFORM(APPLETV)
                 return Texture::createInvalid(*this);
 #else
                 textureDescriptor.textureType = MTLTextureType2DMultisampleArray;
@@ -2313,7 +2313,7 @@
         break;
     case WGPUTextureViewDimension_2DArray:
         if (m_descriptor.sampleCount > 1) {
-#if PLATFORM(WATCHOS) || PLATFORM(TVOS)
+#if PLATFORM(WATCHOS) || PLATFORM(APPLETV)
             return TextureView::createInvalid(m_device);
 #else
             textureType = MTLTextureType2DMultisampleArray;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to