From patchwork Mon Feb 4 15:27:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lespiau, Damien" X-Patchwork-Id: 2092941 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id BAA5CDFE82 for ; Mon, 4 Feb 2013 15:45:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7A8B9E5FEC for ; Mon, 4 Feb 2013 07:45:39 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id DE961E60BF for ; Mon, 4 Feb 2013 07:29:27 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 04 Feb 2013 07:28:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,600,1355126400"; d="scan'208";a="257441841" Received: from unknown (HELO dyon.amr.corp.intel.com) ([10.255.12.132]) by orsmga001.jf.intel.com with ESMTP; 04 Feb 2013 07:29:26 -0800 From: Damien Lespiau To: intel-gfx@lists.freedesktop.org Date: Mon, 4 Feb 2013 15:27:27 +0000 Message-Id: <1359991705-5254-33-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 1.7.7.5 In-Reply-To: <1359991705-5254-1-git-send-email-damien.lespiau@intel.com> References: <1359991705-5254-1-git-send-email-damien.lespiau@intel.com> Subject: [Intel-gfx] [PATCH 32/90] assembler: Use BRW_WRITEMASK_XYZW instead of the 0xf constant X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Signed-off-by: Damien Lespiau --- 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 #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,