Zebediah Figura : d3dcompiler: Don't add the default matrix majority attribute to variables.

Alexandre Julliard julliard at winehq.org
Fri Mar 13 15:24:45 CDT 2020


Module: wine
Branch: master
Commit: eb4fc30463ac248f7b49596403db4f2f267336a2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=eb4fc30463ac248f7b49596403db4f2f267336a2

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri Mar 13 17:34:54 2020 +0100

d3dcompiler: Don't add the default matrix majority attribute to variables.

This is a type modifier, and thus does not make a lot of sense on a variable.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dcompiler_43/hlsl.y | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y
index a24d29e5df..498ca4bb59 100644
--- a/dlls/d3dcompiler_43/hlsl.y
+++ b/dlls/d3dcompiler_43/hlsl.y
@@ -129,15 +129,7 @@ static BOOL declare_variable(struct hlsl_ir_var *decl, BOOL local)
     BOOL ret;
 
     TRACE("Declaring variable %s.\n", decl->name);
-    if (decl->data_type->type == HLSL_CLASS_MATRIX)
-    {
-        if (!(decl->modifiers & (HLSL_MODIFIER_ROW_MAJOR | HLSL_MODIFIER_COLUMN_MAJOR)))
-        {
-            decl->modifiers |= hlsl_ctx.matrix_majority == HLSL_ROW_MAJOR
-                    ? HLSL_MODIFIER_ROW_MAJOR : HLSL_MODIFIER_COLUMN_MAJOR;
-        }
-    }
-    else
+    if (decl->data_type->type != HLSL_CLASS_MATRIX)
         check_invalid_matrix_modifiers(decl->modifiers, decl->loc);
 
     if (local)




More information about the wine-cvs mailing list