All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
To: harry.wentland@amd.com, markyacoub@google.com,
	nicholas.choi@amd.com, hayden.goodfellow@amd.com
Cc: igt-dev@lists.freedesktop.org, Qingqing Zhuo <qingqing.zhuo@amd.com>
Subject: [igt-dev] [PATCH i-g-t 3/5] tests/amdgpu: Fix test init error on Baffin
Date: Mon, 29 Nov 2021 14:56:57 -0500	[thread overview]
Message-ID: <20211129195659.1865321-4-Rodrigo.Siqueira@amd.com> (raw)
In-Reply-To: <20211129195659.1865321-1-Rodrigo.Siqueira@amd.com>

From: Qingqing Zhuo <qingqing.zhuo@amd.com>

[why]
Baffin does not support plane overlay.
igt_pipe_get_plane_type would thus reports
error.

Signed-off-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
---
 tests/amdgpu/amd_color.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/amdgpu/amd_color.c b/tests/amdgpu/amd_color.c
index 84f0a995..74900ba9 100644
--- a/tests/amdgpu/amd_color.c
+++ b/tests/amdgpu/amd_color.c
@@ -265,7 +265,7 @@ static void test_init(data_t *data)
 	data->primary =
 		igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_PRIMARY);
 	data->overlay =
-		igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_OVERLAY);
+		igt_pipe_get_plane_type_index(data->pipe, DRM_PLANE_TYPE_OVERLAY, 0);
 
 	data->pipe_crc = igt_pipe_crc_new(data->fd, data->pipe_id,
 					  INTEL_PIPE_CRC_SOURCE_AUTO);
-- 
2.25.1

  parent reply	other threads:[~2021-11-29 19:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-29 19:56 [igt-dev] [PATCH i-g-t 0/5] tests/amdgpu: Improve amd_color Rodrigo Siqueira
2021-11-29 19:56 ` [igt-dev] [PATCH i-g-t 1/5] tests/amdgpu: Test plane level CTM and degamma Rodrigo Siqueira
2021-11-30 16:12   ` Harry Wentland
2021-11-29 19:56 ` [igt-dev] [PATCH i-g-t 2/5] tests/amdgpu: Test combination of plane degamma and CRTC regamma Rodrigo Siqueira
2021-11-29 19:56 ` Rodrigo Siqueira [this message]
2021-11-29 19:56 ` [igt-dev] [PATCH i-g-t 4/5] test/amdgpu: Add test description to amd_max_bpc and amd_color tests Rodrigo Siqueira
2021-11-29 19:56 ` [igt-dev] [PATCH i-g-t 5/5] tests/amdgpu: fix gamma test on plane and crtc Rodrigo Siqueira
2021-11-29 21:02 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/amdgpu: Improve amd_color Patchwork
2021-11-29 22:21 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-11-29 22:46   ` Rodrigo Siqueira Jordao
2021-11-30  4:46     ` Vudum, Lakshminarayana
2021-11-30  0:09 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2021-11-30  2:46 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211129195659.1865321-4-Rodrigo.Siqueira@amd.com \
    --to=rodrigo.siqueira@amd.com \
    --cc=harry.wentland@amd.com \
    --cc=hayden.goodfellow@amd.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=markyacoub@google.com \
    --cc=nicholas.choi@amd.com \
    --cc=qingqing.zhuo@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.