From patchwork Mon Jan 12 14:09:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tim.gore@intel.com X-Patchwork-Id: 5610621 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 707F99F2ED for ; Mon, 12 Jan 2015 14:09:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A13D920648 for ; Mon, 12 Jan 2015 14:09:55 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A763820647 for ; Mon, 12 Jan 2015 14:09:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CC20789BAB; Mon, 12 Jan 2015 06:09:53 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 10E4E89BAB for ; Mon, 12 Jan 2015 06:09:52 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 12 Jan 2015 06:09:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,744,1413270000"; d="scan'208";a="636037548" Received: from tgore-linux.isw.intel.com ([10.102.226.50]) by orsmga001.jf.intel.com with ESMTP; 12 Jan 2015 06:09:50 -0800 From: tim.gore@intel.com To: intel-gfx@lists.freedesktop.org Date: Mon, 12 Jan 2015 14:09:49 +0000 Message-Id: <1421071789-10391-1-git-send-email-tim.gore@intel.com> X-Mailer: git-send-email 2.2.1 Cc: thomas.wood@intel.com Subject: [Intel-gfx] [PATCH i-g-t] tests/gem_exec_params: change flags used in invalid-flags test X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 From: Tim Gore The invalid-flags test in gem_exec_params uses (I915_EXEC_HANDLE_LUT << 1) as an invalid flag, but this is no longer invalid for recent android versions, and may not be invalid in Linux in the future. So I have changed this test to use (__I915_EXEC_UNKNOWN_FLAGS) instead. __I915_EXEC_UNKNOWN_FLAGS is defined in i915_drm.h as a mask of all the undefined flags. Signed-off-by: Tim Gore --- tests/gem_exec_params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c index f63eda9..2a1c544 100644 --- a/tests/gem_exec_params.c +++ b/tests/gem_exec_params.c @@ -179,7 +179,7 @@ igt_main /* HANDLE_LUT and NO_RELOC are already exercised by gem_exec_lut_handle */ igt_subtest("invalid-flag") { - execbuf.flags = I915_EXEC_RENDER | (I915_EXEC_HANDLE_LUT << 1); + execbuf.flags = I915_EXEC_RENDER | (__I915_EXEC_UNKNOWN_FLAGS); RUN_FAIL(EINVAL); }