From patchwork Fri Feb 7 17:03:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 3606801 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3E2AFC02E3 for ; Fri, 7 Feb 2014 17:03:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 775A420114 for ; Fri, 7 Feb 2014 17:03:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7DAA72011D for ; Fri, 7 Feb 2014 17:03:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 479D6FB7C1; Fri, 7 Feb 2014 09:03:52 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by gabe.freedesktop.org (Postfix) with ESMTP id A3D92FB9A5 for ; Fri, 7 Feb 2014 09:03:47 -0800 (PST) Received: by mail-wi0-f176.google.com with SMTP id hi5so1046703wib.3 for ; Fri, 07 Feb 2014 09:03:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=Q2iw8JT3foxbwxv568dbDKPzvmWGQ2ympuKrMc1LNQQ=; b=ANyv+G0FdBXnsGCMwkwUuJt9THAoth0NlBmnXhU7puqQ0kb2YXTdBh56dYDiYGoFuL kgf77Ro4ahZ9rhMRKpV6sWz8yVddfl7s4BwH0MDFNUbbtlGLdm3iSHt3UrsRFNkpiNlC Uo92IQsJuGQ87wUg9/v00kUAiXJKRMZQMWgDWUngAoiaCOZ5JFmsaT808gqXw98MMvSu XRHb1PSpUOH+jJbmZuODt0M/cDq5fkpBNfJZ6zcct8ss3VWeKqtzIW5qxBW25zpwNFVa 2IT5BTvuiY5HlLi4Q8r7GC2413jUurhOg4tO6ZrususRXAK/PNG8/fQma83a2IRLAVDe lGHw== X-Gm-Message-State: ALoCoQmYuryyJAHenfkkMrmc5q6oOFwl9Du0KmJZLIK46zbXt4lJ6xunZnR74SLjdMfyxoBEj63U X-Received: by 10.194.174.4 with SMTP id bo4mr2487710wjc.62.1391792623919; Fri, 07 Feb 2014 09:03:43 -0800 (PST) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id ea4sm9771711wib.7.2014.02.07.09.03.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Feb 2014 09:03:43 -0800 (PST) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Fri, 7 Feb 2014 17:03:38 +0000 Message-Id: <1391792619-17110-3-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1391792619-17110-1-git-send-email-thomas.wood@intel.com> References: <1391792619-17110-1-git-send-email-thomas.wood@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t 2/3] assembler: fix condition for printing a warning 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: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Thomas Wood --- assembler/gram.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assembler/gram.y b/assembler/gram.y index ad4cb29..f4145bd 100644 --- a/assembler/gram.y +++ b/assembler/gram.y @@ -351,7 +351,7 @@ static bool validate_src_reg(struct brw_program_instruction *insn, /* B. If ExecSize = Width and HorzStride ? 0, VertStride must be set to * Width * HorzStride. */ if (execsize == width && hstride != 0) { - if (vstride != -1 && vstride != width * hstride); + if (vstride != -1 && vstride != width * hstride) warn(ALL, location, "execution size == width and hstride != 0 but " "vstride is not width * hstride\n"); }