Skip to content
Snippets Groups Projects
Commit eb4fc304 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard
Browse files

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: default avatarZebediah Figura <zfigura@codeweavers.com>
Signed-off-by: default avatarMatteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 7f39f2ba
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment