From patchwork Fri Nov 3 14:26:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juha-Pekka Heikkila X-Patchwork-Id: 10040365 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 2D146602D8 for ; Fri, 3 Nov 2017 14:26:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A3BB2926E for ; Fri, 3 Nov 2017 14:26:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F0A5292D8; Fri, 3 Nov 2017 14:26:48 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 155B92926E for ; Fri, 3 Nov 2017 14:26:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 174DE6E116; Fri, 3 Nov 2017 14:26:46 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F77A6E116 for ; Fri, 3 Nov 2017 14:26:44 +0000 (UTC) Received: by mail-pf0-x243.google.com with SMTP id 17so2307671pfn.12 for ; Fri, 03 Nov 2017 07:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=jmeeHGhomx9f6zb52MqwwpaJjhm+qXhtmOyQVmTLI2A=; b=bcSdOPDi+oNfJ8MD4XApokpAY2wHAEByRoSh14vf0CrZavbocpp4enunjSaV4XnswC ujtyt5+fF3Ykqks37kunDJjxrTSCTZBBICOa9kCg1UXLf47iHglHz5r+Qm7AE0JX91c1 SDd9MfZvSUrkYL5NVVlXRcp8MnCexsOeC3lSDZhEzgzy3CSyfCQIASw7KZclD1kbcSo1 8hyfxthE79lANM5GQVQuPAwEa1puDfzoYp7gc5Ssi+8XfBoRE5H/i+BCfRRAQWhCnvot RKsGJUCWN8volbAOzqlRLp7AKAThxnT1ks1uqJrSd7nbwQLHfnjeJem8VxCmYTBVW1kO f+jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jmeeHGhomx9f6zb52MqwwpaJjhm+qXhtmOyQVmTLI2A=; b=oCpfhNmb2QKeyQ9tjgzOeuuUXubFf5Dtl1F0gbgET9ElC135bl8UEiceJxQMzxLMm7 as7dLR4Mvf5FR7EyFppAjorkOJhI8tYn/Rha+zNCfxLEM9hwKsDwNFJCAKOY54uhVvGR Fu3H8m6AU2bWFpeVMJMRFjzV+ScLIRzsLvtap2hsY1rNAPLwQCGXifI5pxEggUQiYuV5 sp38r9F5OjtAbBX9lYrzZ3SnLG1fr63xj6favJcT30oOftl9ExNhI2tR48GDnGZiWjcL Sp7zzmkW09NcTCBfmKzAZ7sDZilLz73q+ji47ZXUITQcQsAS89mC7KCIuV2huqAMYzTg ekyA== X-Gm-Message-State: AMCzsaX7jSMDoJg9ccFMHx1of2kwzPBCTHcOUfPBF91grGDEQMndzoq3 wt3gRg1jdmnPBfePZsCmvie0ng== X-Google-Smtp-Source: ABhQp+RR4BHDhnBAkbFLDrx+7DLLXSqJohW6kTFCRCMw8zfulp7uV4Yz+iYunNu2WnctJdsyqcKJUg== X-Received: by 10.98.13.79 with SMTP id v76mr7843842pfi.225.1509719203586; Fri, 03 Nov 2017 07:26:43 -0700 (PDT) Received: from jheikkil-mobl.fi.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.54.39]) by smtp.gmail.com with ESMTPSA id a78sm12150982pfl.122.2017.11.03.07.26.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 07:26:42 -0700 (PDT) From: Juha-Pekka Heikkila To: intel-gfx@lists.freedesktop.org Date: Fri, 3 Nov 2017 16:26:30 +0200 Message-Id: <1509719190-32346-1-git-send-email-juhapekka.heikkila@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Intel-gfx] [PATCH i-g-t] igt/kms_rotation_crc: Add RGB565 90 degree test for gen>9 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 Gen10 onwards 90 and 270 degree rotations are supported for RGB565 format. Signed-off-by: Juha-Pekka Heikkila --- tests/kms_rotation_crc.c | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 27d1f80..f22bcb5 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -423,11 +423,10 @@ static void test_plane_rotation(data_t *data, int plane_type) static void test_plane_rotation_ytiled_obj(data_t *data, igt_output_t *output, - int plane_type) + int plane_type, uint32_t format) { igt_display_t *display = &data->display; uint64_t tiling = LOCAL_I915_FORMAT_MOD_Y_TILED; - uint32_t format = DRM_FORMAT_XRGB8888; int bpp = igt_drm_format_to_bpp(format); enum igt_commit_style commit = COMMIT_LEGACY; int fd = data->gfx_fd; @@ -709,6 +708,29 @@ igt_main test_plane_rotation(&data, DRM_PLANE_TYPE_PRIMARY); } + igt_subtest_f("primary-rotation-90-Y-tiled-16bpp") { + enum pipe pipe; + igt_output_t *output; + int valid_tests = 0; + + igt_require(gen > 9); + data.rotation = IGT_ROTATION_90; + + for_each_pipe_with_valid_output(&data.display, pipe, output) { + igt_output_set_pipe(output, pipe); + + test_plane_rotation_ytiled_obj(&data, output, + DRM_PLANE_TYPE_PRIMARY, + DRM_FORMAT_RGB565); + + valid_tests++; + break; + } + + igt_require_f(valid_tests, + "no valid crtc/connector combinations found\n"); + } + igt_subtest_f("primary-rotation-90-Y-tiled") { enum pipe pipe; igt_output_t *output; @@ -720,7 +742,9 @@ igt_main for_each_pipe_with_valid_output(&data.display, pipe, output) { igt_output_set_pipe(output, pipe); - test_plane_rotation_ytiled_obj(&data, output, DRM_PLANE_TYPE_PRIMARY); + test_plane_rotation_ytiled_obj(&data, output, + DRM_PLANE_TYPE_PRIMARY, + DRM_FORMAT_XRGB8888); valid_tests++; break;