Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Kahola, Mika" <mika.kahola@intel.com>
To: "juhapekka.heikkila@gmail.com" <juhapekka.heikkila@gmail.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: don't mix hdr and sdr planes
Date: Tue, 22 Sep 2020 08:51:46 +0000	[thread overview]
Message-ID: <33398d8cc33a420e9cbe73601c7beb9d@intel.com> (raw)
In-Reply-To: <eea4cee8-01ba-4557-9ddb-ec1649af3276@gmail.com>

> -----Original Message-----
> From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> Sent: Tuesday, September 22, 2020 10:43 AM
> To: Kahola, Mika <mika.kahola@intel.com>; igt-dev@lists.freedesktop.org
> Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: don't mix
> hdr and sdr planes
> 
> On 15.9.2020 12.38, Kahola, Mika wrote:
> >
> >
> >> -----Original Message-----
> >> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of
> >> Juha- Pekka Heikkila
> >> Sent: Monday, September 14, 2020 5:17 PM
> >> To: igt-dev@lists.freedesktop.org
> >> Subject: [igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: don't
> >> mix hdr and sdr planes
> >>
> >> Run test only on hdr planes as that's where crc to compare against is
> >> gotten from. Also reset display in beginning of test.
> >>
> >> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> >> ---
> >>   tests/kms_available_modes_crc.c | 6 ++++--
> >>   1 file changed, 4 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/tests/kms_available_modes_crc.c
> >> b/tests/kms_available_modes_crc.c index 09785ed8..be9689e1 100644
> >> --- a/tests/kms_available_modes_crc.c
> >> +++ b/tests/kms_available_modes_crc.c
> >> @@ -43,7 +43,6 @@ typedef struct {
> >>   	bool separateprimaryplane;
> >>
> >>   	uint32_t gem_handle;
> >> -	uint32_t gem_handle_yuv;
> >>   	unsigned int size;
> >>   	unsigned char* buf;
> >>
> >> @@ -355,6 +354,8 @@ test_available_modes(data_t* data)
> >>   		uint16_t reserved;
> >>   	} *lut = NULL;
> >>
> >> +	igt_display_reset(&data->display);
> >> +
> >>   	for_each_pipe_with_valid_output(&data->display, pipe, output) {
> >>   		igt_output_set_pipe(output, pipe);
> >>   		igt_display_commit2(&data->display, data->commit); @@ -
> >> 397,7 +398,8 @@ test_available_modes(data_t* data)
> >>   			modePlane = drmModeGetPlane(data->gfx_fd,
> >>   						    plane->drm_plane-
> >>> plane_id);
> >>
> >> -			if (plane->type == DRM_PLANE_TYPE_CURSOR)
> >> +			if (plane->type == DRM_PLANE_TYPE_CURSOR
> >> +			    || plane->index > 2)
> >
> > Actually, this is a third IGT test that uses separation between HDR and SDR
> planes. We have a function is_sdr_plane() used in both kms_ccs.c and
> kms_plane_lowres.c tests. Maybe it is a time to make this is_hdr_plane()
> routine a library function? This way, if the SDR base index changes, we would
> need to change only one place. What do you think?
> 
> I think that change could be made later as separate cleanup, this patch is for
> fixing a bug.

Yep, this is a bug fix. Should we use here the same definition

#define SDR_PLANE_BASE 3

As we use for other tests? I will probably come back to this later so these tests that check SDR/HDR planes could be found by searching this string?

Either way, the patch does what it says so

Reviewed-by: Mika Kahola <mika.kahola@intel.com>

> 
> >
> > Cheers,
> > Mika
> >>   				continue;
> >>
> >>   			for (modeindex = 0;
> >> --
> >> 2.26.0
> >>
> >> _______________________________________________
> >> igt-dev mailing list
> >> igt-dev@lists.freedesktop.org
> >> https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

      reply	other threads:[~2020-09-22  8:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14 14:16 [igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: don't mix hdr and sdr planes Juha-Pekka Heikkila
2020-09-14 15:32 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-09-14 19:53 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2020-09-15  9:38 ` [igt-dev] [PATCH i-g-t] " Kahola, Mika
2020-09-22  7:43   ` Juha-Pekka Heikkila
2020-09-22  8:51     ` Kahola, Mika [this message]

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=33398d8cc33a420e9cbe73601c7beb9d@intel.com \
    --to=mika.kahola@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=juhapekka.heikkila@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox