From patchwork Wed Feb 1 13:18:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Kahola X-Patchwork-Id: 9549705 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2D66B60424 for ; Wed, 1 Feb 2017 13:17:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E6E92842E for ; Wed, 1 Feb 2017 13:17:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1352528448; Wed, 1 Feb 2017 13:17:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B5BAA2842E for ; Wed, 1 Feb 2017 13:17:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 791296E7D6; Wed, 1 Feb 2017 13:17:30 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D61A6E7D0 for ; Wed, 1 Feb 2017 13:17:29 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 01 Feb 2017 05:17:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,320,1477983600"; d="scan'208";a="38245124" Received: from sorvi.fi.intel.com ([10.237.72.109]) by orsmga002.jf.intel.com with ESMTP; 01 Feb 2017 05:17:28 -0800 From: Mika Kahola To: intel-gfx@lists.freedesktop.org Date: Wed, 1 Feb 2017 15:18:04 +0200 Message-Id: <1485955089-30267-3-git-send-email-mika.kahola@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485955089-30267-1-git-send-email-mika.kahola@intel.com> References: <1485955089-30267-1-git-send-email-mika.kahola@intel.com> Subject: [Intel-gfx] [PATCH i-g-t v3 2/7] tests/kms_plane_multiple: Add TEST_ONLY flag 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-Virus-Scanned: ClamAV using ClamSMTP Add TEST_ONLY flag to test atomic modesetting commits without actual real-life commit. v2: Use flag to indicate to test with TEST_ONLY flag with atomic commit Signed-off-by: Mika Kahola --- tests/kms_plane_multiple.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c index bb84878..2104976 100644 --- a/tests/kms_plane_multiple.c +++ b/tests/kms_plane_multiple.c @@ -412,9 +412,37 @@ test_plane_position(data_t *data, enum pipe pipe, bool atomic, int n_planes, static void run_tests_for_pipe_plane(data_t *data, enum pipe pipe) { + igt_subtest_f("atomic-pipe-%s-tiling-x-planes-with-tests", + kmstest_pipe_name(pipe)) { + int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = true; + for (int planes = 0; planes < n_planes; planes++) + test_plane_position(data, pipe, true, n_planes, + planes, LOCAL_I915_FORMAT_MOD_X_TILED); + } + + igt_subtest_f("atomic-pipe-%s-tiling-y-planes-with-tests", + kmstest_pipe_name(pipe)) { + int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = true; + for (int planes = 0; planes < n_planes; planes++) + test_plane_position(data, pipe, true, n_planes, + planes, LOCAL_I915_FORMAT_MOD_X_TILED); + } + + igt_subtest_f("atomic-pipe-%s-tiling-yf-planes-with-tests", + kmstest_pipe_name(pipe)) { + int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = true; + for (int planes = 0; planes < n_planes; planes++) + test_plane_position(data, pipe, true, n_planes, + planes, LOCAL_I915_FORMAT_MOD_X_TILED); + } + igt_subtest_f("legacy-pipe-%s-tiling-none-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = false; for (int planes = 0; planes < n_planes; planes++) test_plane_position(data, pipe, false, n_planes, planes, LOCAL_DRM_FORMAT_MOD_NONE); @@ -423,6 +451,7 @@ run_tests_for_pipe_plane(data_t *data, enum pipe pipe) igt_subtest_f("atomic-pipe-%s-tiling-none-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = false; for (int planes = 0; planes < n_planes; planes++) test_plane_position(data, pipe, true, n_planes, planes, LOCAL_I915_FORMAT_MOD_X_TILED); @@ -431,6 +460,7 @@ run_tests_for_pipe_plane(data_t *data, enum pipe pipe) igt_subtest_f("legacy-pipe-%s-tiling-x-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = false; for (int planes = 0; planes < n_planes; planes++) test_plane_position(data, pipe, false, n_planes, planes, LOCAL_I915_FORMAT_MOD_X_TILED); @@ -439,6 +469,7 @@ run_tests_for_pipe_plane(data_t *data, enum pipe pipe) igt_subtest_f("atomic-pipe-%s-tiling-x-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = false; for (int planes = 0; planes < n_planes; planes++) test_plane_position(data, pipe, true, n_planes, planes, LOCAL_I915_FORMAT_MOD_X_TILED); @@ -447,6 +478,7 @@ run_tests_for_pipe_plane(data_t *data, enum pipe pipe) igt_subtest_f("legacy-pipe-%s-tiling-y-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = false; for (int planes = 0; planes < n_planes; planes++) test_plane_position(data, pipe, false, n_planes, planes, LOCAL_I915_FORMAT_MOD_Y_TILED); @@ -455,6 +487,7 @@ run_tests_for_pipe_plane(data_t *data, enum pipe pipe) igt_subtest_f("atomic-pipe-%s-tiling-y-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = false; for (int planes = 0; planes < n_planes; planes++) test_plane_position(data, pipe, true, n_planes, planes, LOCAL_I915_FORMAT_MOD_Y_TILED); @@ -463,6 +496,7 @@ run_tests_for_pipe_plane(data_t *data, enum pipe pipe) igt_subtest_f("legacy-pipe-%s-tiling-yf-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = false; for (int planes = 0; planes < n_planes; planes++) test_plane_position(data, pipe, false, n_planes, planes, LOCAL_I915_FORMAT_MOD_Yf_TILED); @@ -471,6 +505,7 @@ run_tests_for_pipe_plane(data_t *data, enum pipe pipe) igt_subtest_f("atomic-pipe-%s-tiling-yf-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes; + data->display.force_test_atomic = false; for (int planes = 0; planes < n_planes; planes++) test_plane_position(data, pipe, true, n_planes, planes, LOCAL_I915_FORMAT_MOD_Yf_TILED);