[D3DCOMPILER_43] Sync with Wine Staging 4.0. CORE-15682
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 25 Jan 2019 12:08:25 +0000 (13:08 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 25 Jan 2019 12:08:25 +0000 (13:08 +0100)
dll/directx/wine/d3dcompiler_43/utils.c
media/doc/README.WINE

index be0adbb..95a1dbd 100644 (file)
@@ -2138,9 +2138,12 @@ static void debug_dump_ir_constructor(const struct hlsl_ir_constructor *construc
 
 static const char *debug_writemask(DWORD writemask)
 {
-    char string[5], components[] = {'x', 'y', 'z', 'w'};
+    static const char components[] = {'x', 'y', 'z', 'w'};
+    char string[5];
     unsigned int i = 0, pos = 0;
 
+    assert(!(writemask & ~BWRITERSP_WRITEMASK_ALL));
+
     while (writemask)
     {
         if (writemask & 1)
@@ -2176,7 +2179,7 @@ static void debug_dump_ir_swizzle(const struct hlsl_ir_swizzle *swizzle)
     }
     else
     {
-        char c[] = {'x', 'y', 'z', 'w'};
+        static const char c[] = {'x', 'y', 'z', 'w'};
 
         for (i = 0; i < swizzle->node.data_type->dimx; ++i)
             TRACE("%c", c[(swizzle->swizzle >> i * 2) & 0x3]);
index 9494440..3a225d4 100644 (file)
@@ -24,7 +24,7 @@ The following libraries are shared with Wine.
 reactos/dll/directx/wine/amstream       # Synced to WineStaging-3.9
 reactos/dll/directx/wine/d3d8           # Synced to WineStaging-3.9
 reactos/dll/directx/wine/d3d9           # Synced to WineStaging-3.9
-reactos/dll/directx/wine/d3dcompiler_43 # Synced to WineStaging-3.17
+reactos/dll/directx/wine/d3dcompiler_43 # Synced to WineStaging-4.0
 reactos/dll/directx/wine/d3drm          # Synced to WineStaging-3.9
 reactos/dll/directx/wine/d3dx9_24 => 43 # Synced to WineStaging-3.17
 reactos/dll/directx/wine/d3dxof         # Synced to WineStaging-3.17