Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4A3E26E843 for ; Wed, 18 Aug 2021 15:37:12 +0000 (UTC) Date: Wed, 18 Aug 2021 18:36:37 +0300 From: Petri Latvala Message-ID: References: <20210818145614.1093522-1-Rodrigo.Siqueira@amd.com> <20210818145614.1093522-5-Rodrigo.Siqueira@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210818145614.1093522-5-Rodrigo.Siqueira@amd.com> Subject: Re: [igt-dev] [PATCH 4/4] test/kms_atomic: Skip plane overlay test for amdgpu List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Rodrigo Siqueira Cc: igt-dev@lists.freedesktop.org, Harry Wentland , Nicholas Choi , Sean Paul , Mark Yacoub , Melissa Wen , Arkadiusz Hiler List-ID: On Wed, Aug 18, 2021 at 10:56:14AM -0400, Rodrigo Siqueira wrote: > Currently, amdgpu does not support an overlay strategy. As a result, > plane_overlay fails on amdgpu; since this is a driver limitation, this > commit skips the overlay test for amdgpu. > > Cc: Harry Wentland > Cc: Nicholas Choi > Cc: Sean Paul > Cc: Mark Yacoub > Cc: Melissa Wen > Cc: Arkadiusz Hiler > Cc: Petri Latvala > Signed-off-by: Rodrigo Siqueira > --- > tests/kms_atomic.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c > index 1e1bee4d..e460ba35 100644 > --- a/tests/kms_atomic.c > +++ b/tests/kms_atomic.c > @@ -501,6 +501,13 @@ static void plane_overlay(igt_pipe_t *pipe, igt_output_t *output, igt_plane_t *p > uint32_t w = mode->hdisplay / 2; > uint32_t h = mode->vdisplay / 2; > > + /* On AMD, with hardware cursor, overlay plane must fully cover > + * the primary plane (underlay). AMD does not support this test > + * scenario > + */ > + if (is_amdgpu_device(output->display->drm_fd)) > + igt_require(0); > + A skip result with a message of "requirement not met: 0" requires special magic to understand without reading the code. How about igt_require_f(!is_amdgpu_device(output->display->drm_fd), "Overlay must fully cover the primary plane on AMD\n"); -- Petri Latvala