d3dcompiler: Rename HLSL_MODIFIERS_COMPARISON_MASK to HLSL_MODIFIERS_MAJORITY_MASK and use it in more places.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f9ce3c7c7a
commit
8ea8eb20a4
|
@ -741,7 +741,7 @@ struct hlsl_ir_node
|
|||
HLSL_MODIFIER_CONST | HLSL_MODIFIER_ROW_MAJOR | \
|
||||
HLSL_MODIFIER_COLUMN_MAJOR)
|
||||
|
||||
#define HLSL_MODIFIERS_COMPARISON_MASK (HLSL_MODIFIER_ROW_MAJOR | HLSL_MODIFIER_COLUMN_MAJOR)
|
||||
#define HLSL_MODIFIERS_MAJORITY_MASK (HLSL_MODIFIER_ROW_MAJOR | HLSL_MODIFIER_COLUMN_MAJOR)
|
||||
|
||||
struct reg_reservation
|
||||
{
|
||||
|
|
|
@ -117,7 +117,7 @@ static void debug_dump_decl(struct hlsl_type *type, DWORD modifiers, const char
|
|||
|
||||
static void check_invalid_matrix_modifiers(DWORD modifiers, struct source_location loc)
|
||||
{
|
||||
if (modifiers & (HLSL_MODIFIER_ROW_MAJOR | HLSL_MODIFIER_COLUMN_MAJOR))
|
||||
if (modifiers & HLSL_MODIFIERS_MAJORITY_MASK)
|
||||
{
|
||||
hlsl_report_message(loc, HLSL_LEVEL_ERROR,
|
||||
"'row_major' or 'column_major' modifiers are only allowed for matrices");
|
||||
|
@ -175,8 +175,7 @@ static DWORD add_modifiers(DWORD modifiers, DWORD mod, const struct source_locat
|
|||
hlsl_report_message(loc, HLSL_LEVEL_ERROR, "modifier '%s' already specified", debug_modifiers(mod));
|
||||
return modifiers;
|
||||
}
|
||||
if (mod & (HLSL_MODIFIER_ROW_MAJOR | HLSL_MODIFIER_COLUMN_MAJOR)
|
||||
&& modifiers & (HLSL_MODIFIER_ROW_MAJOR | HLSL_MODIFIER_COLUMN_MAJOR))
|
||||
if ((mod & HLSL_MODIFIERS_MAJORITY_MASK) && (modifiers & HLSL_MODIFIERS_MAJORITY_MASK))
|
||||
{
|
||||
hlsl_report_message(loc, HLSL_LEVEL_ERROR, "more than one matrix majority keyword");
|
||||
return modifiers;
|
||||
|
|
|
@ -892,8 +892,8 @@ BOOL compare_hlsl_types(const struct hlsl_type *t1, const struct hlsl_type *t2)
|
|||
return FALSE;
|
||||
if (t1->base_type == HLSL_TYPE_SAMPLER && t1->sampler_dim != t2->sampler_dim)
|
||||
return FALSE;
|
||||
if ((t1->modifiers & HLSL_MODIFIERS_COMPARISON_MASK)
|
||||
!= (t2->modifiers & HLSL_MODIFIERS_COMPARISON_MASK))
|
||||
if ((t1->modifiers & HLSL_MODIFIERS_MAJORITY_MASK)
|
||||
!= (t2->modifiers & HLSL_MODIFIERS_MAJORITY_MASK))
|
||||
return FALSE;
|
||||
if (t1->dimx != t2->dimx)
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue