From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 923EE10E286 for ; Mon, 14 Feb 2022 15:01:12 +0000 (UTC) From: Jeevan B Date: Mon, 14 Feb 2022 20:30:03 +0530 Message-Id: <20220214150009.26815-11-jeevan.b@intel.com> In-Reply-To: <20220214150009.26815-1-jeevan.b@intel.com> References: <20220214150009.26815-1-jeevan.b@intel.com> Subject: [igt-dev] [PATCH i-g-t v2 10/16] igt/tests: Add support for Tile4(TileF) format to testdisplay List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: juha-pekka.heikkila@intel.com List-ID: From: Matt Roper testdisplay is a great test for manual testing/debug of Tile-4; we just need an extra parameter to enable that tiling format. Signed-off-by: Matt Roper Signed-off-by: Jeevan B --- tests/testdisplay.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 54327761..e9fbd260 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -593,7 +593,7 @@ static void set_termio_mode(void) tcsetattr(tio_fd, TCSANOW, &tio); } -static char optstr[] = "3Aiaf:s:d:p:mrto:j:y"; +static char optstr[] = "3Aiaf:s:d:p:mrt4o:j:y"; static struct option long_opts[] = { {"yb", 0, 0, OPT_YB}, {"yf", 0, 0, OPT_YF}, @@ -612,6 +612,7 @@ static const char *help_str = " -t\tuse an X-tiled framebuffer\n" " -y, --yb\n" " \tuse a Y-tiled framebuffer\n" + " -4\tuse an Tile-4 framebuffer\n" " --yf\tuse a Yf-tiled framebuffer\n" " -j\tdo dpms off, optional arg to select dpms level (1-3)\n" " -r\tprint a QR code on the screen whose content is \"pass\" for the automatic test\n" @@ -680,6 +681,9 @@ static int opt_handler(int opt, int opt_index, void *data) case OPT_YF: modifier = I915_FORMAT_MOD_Yf_TILED; break; + case '4': + modifier = I915_FORMAT_MOD_4_TILED; + break; case 'r': qr_code = 1; break; -- 2.17.1