Commit a82ec548 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3dcompiler: Rename HLSL_MODIFIER_{IN, OUT} to HLSL_STORAGE_{IN, OUT}.

parent cf2148e1
...@@ -734,8 +734,8 @@ struct hlsl_ir_node ...@@ -734,8 +734,8 @@ struct hlsl_ir_node
#define HLSL_MODIFIER_CONST 0x00000100 #define HLSL_MODIFIER_CONST 0x00000100
#define HLSL_MODIFIER_ROW_MAJOR 0x00000200 #define HLSL_MODIFIER_ROW_MAJOR 0x00000200
#define HLSL_MODIFIER_COLUMN_MAJOR 0x00000400 #define HLSL_MODIFIER_COLUMN_MAJOR 0x00000400
#define HLSL_MODIFIER_IN 0x00000800 #define HLSL_STORAGE_IN 0x00000800
#define HLSL_MODIFIER_OUT 0x00001000 #define HLSL_STORAGE_OUT 0x00001000
#define HLSL_TYPE_MODIFIERS_MASK (HLSL_MODIFIER_PRECISE | HLSL_STORAGE_VOLATILE | \ #define HLSL_TYPE_MODIFIERS_MASK (HLSL_MODIFIER_PRECISE | HLSL_STORAGE_VOLATILE | \
HLSL_MODIFIER_CONST | HLSL_MODIFIER_ROW_MAJOR | \ HLSL_MODIFIER_CONST | HLSL_MODIFIER_ROW_MAJOR | \
......
...@@ -1489,7 +1489,7 @@ parameter: input_mods var_modifiers type any_identifier colon_att ...@@ -1489,7 +1489,7 @@ parameter: input_mods var_modifiers type any_identifier colon_att
if (!(type = apply_type_modifiers($3, &modifiers, get_location(&@2)))) if (!(type = apply_type_modifiers($3, &modifiers, get_location(&@2))))
YYABORT; YYABORT;
$$.modifiers = $1 ? $1 : HLSL_MODIFIER_IN; $$.modifiers = $1 ? $1 : HLSL_STORAGE_IN;
$$.modifiers |= modifiers; $$.modifiers |= modifiers;
$$.type = type; $$.type = type;
$$.name = $4; $$.name = $4;
...@@ -1514,15 +1514,15 @@ input_mods: /* Empty */ ...@@ -1514,15 +1514,15 @@ input_mods: /* Empty */
input_mod: KW_IN input_mod: KW_IN
{ {
$$ = HLSL_MODIFIER_IN; $$ = HLSL_STORAGE_IN;
} }
| KW_OUT | KW_OUT
{ {
$$ = HLSL_MODIFIER_OUT; $$ = HLSL_STORAGE_OUT;
} }
| KW_INOUT | KW_INOUT
{ {
$$ = HLSL_MODIFIER_IN | HLSL_MODIFIER_OUT; $$ = HLSL_STORAGE_IN | HLSL_STORAGE_OUT;
} }
type: base_type type: base_type
......
...@@ -1808,11 +1808,11 @@ const char *debug_modifiers(DWORD modifiers) ...@@ -1808,11 +1808,11 @@ const char *debug_modifiers(DWORD modifiers)
strcat(string, " row_major"); /* 10 */ strcat(string, " row_major"); /* 10 */
if (modifiers & HLSL_MODIFIER_COLUMN_MAJOR) if (modifiers & HLSL_MODIFIER_COLUMN_MAJOR)
strcat(string, " column_major"); /* 13 */ strcat(string, " column_major"); /* 13 */
if ((modifiers & (HLSL_MODIFIER_IN | HLSL_MODIFIER_OUT)) == (HLSL_MODIFIER_IN | HLSL_MODIFIER_OUT)) if ((modifiers & (HLSL_STORAGE_IN | HLSL_STORAGE_OUT)) == (HLSL_STORAGE_IN | HLSL_STORAGE_OUT))
strcat(string, " inout"); /* 6 */ strcat(string, " inout"); /* 6 */
else if (modifiers & HLSL_MODIFIER_IN) else if (modifiers & HLSL_STORAGE_IN)
strcat(string, " in"); /* 3 */ strcat(string, " in"); /* 3 */
else if (modifiers & HLSL_MODIFIER_OUT) else if (modifiers & HLSL_STORAGE_OUT)
strcat(string, " out"); /* 4 */ strcat(string, " out"); /* 4 */
return wine_dbg_sprintf("%s", string[0] ? string + 1 : ""); return wine_dbg_sprintf("%s", string[0] ? string + 1 : "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment