[PATCH 32/90] assembler: Use BRW_WRITEMASK_XYZW instead of the 0xf constant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 assembler/gram.y |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/assembler/gram.y b/assembler/gram.y
index 55708ca..a27375b 100644
--- a/assembler/gram.y
+++ b/assembler/gram.y
@@ -32,6 +32,7 @@
 #include <assert.h>
 #include "gen4asm.h"
 #include "brw_defines.h"
+#include "brw_reg.h"
 
 #define DEFAULT_EXECSIZE (ffs(program_defaults.execute_size) - 1)
 #define DEFAULT_DSTREGION -1
@@ -58,7 +59,7 @@ static struct dst_operand ip_dst =
     .reg_type = BRW_REGISTER_TYPE_UD,
     .address_mode = BRW_ADDRESS_DIRECT,
     .horiz_stride = 1,
-    .writemask = 0xF,
+    .writemask = BRW_WRITEMASK_XYZW,
 };
 static struct src_operand ip_src =
 {
@@ -2431,7 +2432,7 @@ chansel:	X | Y | Z | W
 writemask:	/* empty */
 		{
 		  $$.writemask_set = 0;
-		  $$.writemask = 0xf;
+		  $$.writemask = BRW_WRITEMASK_XYZW;
 		}
 		| DOT writemask_x writemask_y writemask_z writemask_w
 		{
@@ -3134,7 +3135,7 @@ void set_direct_dst_operand(struct dst_operand *dst, struct direct_reg *reg,
 	dst->reg_type = type;
 	dst->horiz_stride = 1;
 	dst->writemask_set = 0;
-	dst->writemask = 0xf;
+	dst->writemask = BRW_WRITEMASK_XYZW;
 }
 
 void set_direct_src_operand(struct src_operand *src, struct direct_reg *reg,
-- 
1.7.7.5



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux