From 59801f07e70e057de4e84bc2be7bf6a00b4d8cbe Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 15 Jul 2020 16:15:39 -0700 Subject: [PATCH] intel/tools: Make writemask an integer Reviewed-by: Sagar Ghuge Part-of: --- src/intel/tools/i965_gram.y | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/intel/tools/i965_gram.y b/src/intel/tools/i965_gram.y index 89b36011353..e8bdfc5c301 100644 --- a/src/intel/tools/i965_gram.y +++ b/src/intel/tools/i965_gram.y @@ -467,7 +467,7 @@ i965_asm_set_dst_nr(struct brw_codegen *p, /* writemask */ %type writemask_x writemask_y writemask_z writemask_w -%type writemask +%type writemask /* dst operand */ %type dst dstoperand dstoperandex dstoperandex_typed dstreg @@ -1435,7 +1435,7 @@ dstoperand: $$.hstride = $2; } $$.type = $4; - $$.writemask = $3.writemask; + $$.writemask = $3; $$.swizzle = BRW_SWIZZLE_NOOP; $$.subnr = $$.subnr * brw_reg_type_to_size($4); } @@ -1447,7 +1447,7 @@ dstoperandex: $$ = $1; $$.hstride = $2; $$.type = $4; - $$.writemask = $3.writemask; + $$.writemask = $3; $$.subnr = $$.subnr * brw_reg_type_to_size($4); } /* BSpec says "When the conditional modifier is present, updates @@ -1464,7 +1464,7 @@ dstoperandex: } else { $$.hstride = $2; } - $$.writemask = $3.writemask; + $$.writemask = $3; $$.type = $4; } | threadcontrolreg @@ -2042,11 +2042,11 @@ imm_type: writemask: %empty { - $$= brw_set_writemask($$, WRITEMASK_XYZW); + $$ = WRITEMASK_XYZW; } | DOT writemask_x writemask_y writemask_z writemask_w { - $$ = brw_set_writemask($$, $2 | $3 | $4 | $5); + $$ = $2 | $3 | $4 | $5; } ; -- 2.30.2