[PATCH v2 1/6] d3dcompiler: Use the cached scalar type in expr_common_type() where possible.

Zebediah Figura z.figura12 at gmail.com
Mon Jun 8 16:49:34 CDT 2020


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/d3dcompiler_43/utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/d3dcompiler_43/utils.c b/dlls/d3dcompiler_43/utils.c
index ec0da2d4034..97e3cdf1a3f 100644
--- a/dlls/d3dcompiler_43/utils.c
+++ b/dlls/d3dcompiler_43/utils.c
@@ -1294,6 +1294,8 @@ static struct hlsl_type *expr_common_type(struct hlsl_type *t1, struct hlsl_type
         }
     }
 
+    if (type == HLSL_CLASS_SCALAR)
+        return hlsl_ctx.builtin_types.scalar[base];
     return new_hlsl_type(NULL, type, base, dimx, dimy);
 }
 
-- 
2.26.2




More information about the wine-devel mailing list