From: Matt Turner Date: Wed, 15 Jul 2020 23:15:39 +0000 (-0700) Subject: intel/tools: Make writemask an integer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59801f07e70e057de4e84bc2be7bf6a00b4d8cbe;p=mesa.git intel/tools: Make writemask an integer Reviewed-by: Sagar Ghuge Part-of: --- 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; } ;