From: "Xiang, Haihao" Subject: [PATCH 09/10] print error message when using math function on Sandybridge. Date: Sat, 9 Oct 2010 15:32:29 +0800 Message-ID: <1286609550-16083-10-git-send-email-haihao.xiang@intel.com> References: <1286609550-16083-1-git-send-email-haihao.xiang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FBA09E9D3 for ; Sat, 9 Oct 2010 00:32:57 -0700 (PDT) In-Reply-To: <1286609550-16083-1-git-send-email-haihao.xiang@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Sandybridge doesn't have math funtion, instead it supports a set of math instructions. The support for math instructions will be added later. Signed-off-by: Xiang, Haihao --- src/gram.y | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/gram.y b/src/gram.y index 9258ac7..e61e9db 100644 --- a/src/gram.y +++ b/src/gram.y @@ -595,7 +595,10 @@ msgtarget: NULL_TOKEN } | MATH math_function saturate math_signed math_scalar { - if (gen_level == 5) { + if (gen_level == 6) { + fprintf (stderr, "Gen6+ donesn't have math function\n"); + YYERROR; + } else if (gen_level == 5) { $$.bits2.send_gen5.sfid = BRW_MESSAGE_TARGET_MATH; $$.bits3.generic_gen5.header_present = 0; $$.bits3.math_gen5.function = $2; -- 1.7.0.4