All of lore.kernel.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Skip CCS color clear value check for randomizing subtests
Date: Wed, 5 May 2021 13:27:37 +0300	[thread overview]
Message-ID: <20210505102737.GA126925@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <20210505002305.7bagmdtisnu6hsiw@outlook.office365.com>

Hi,

On Tue, May 04, 2021 at 08:23:05PM -0400, Rodrigo Siqueira wrote:
> Hi,
> 
> I looked at kms_ccs and tried to find a reference for "color control
> surfaces" in DRM, and I found multiple references for this format in
> i915.

CCS means here Compression Control Surface. Yes, the render and media
GPU engines use their own compression format, hence multiple CCS
modifiers are needed. There are also format differences between
platforms, which further increases the number of modifiers.

> Is it an Intel-specific format? Is kms_ccs a test that can be
> executed in different ASICs?

Yes, the CCS FB modifiers are Intel specific and kms_ccs will not run on
other platforms.

--Imre

> Thanks
> Siqueira
> 
> On 04/29, Imre Deak wrote:
> > When filling the color planes with randomized content, the color clear
> > values won't match what the HW actually wrote there, so skip the clear
> > value check in this case.
> > 
> > Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> > Cc: Mika Kahola <mika.kahola@intel.com>
> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> > ---
> >  tests/kms_ccs.c | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
> > index 30e0fdb54..61c9b2277 100644
> > --- a/tests/kms_ccs.c
> > +++ b/tests/kms_ccs.c
> > @@ -195,7 +195,7 @@ static void check_ccs_cc_plane(int drm_fd, igt_fb_t *fb, int plane, const float
> >  	munmap(map, fb->size);
> >  };
> >  
> > -static void check_all_ccs_planes(int drm_fd, igt_fb_t *fb, const float *cc_color)
> > +static void check_all_ccs_planes(int drm_fd, igt_fb_t *fb, const float *cc_color, bool check_cc_plane)
> >  {
> >  	int i;
> >  
> > @@ -203,7 +203,7 @@ static void check_all_ccs_planes(int drm_fd, igt_fb_t *fb, const float *cc_color
> >  		if (igt_fb_is_ccs_plane(fb, i) &&
> >  		    !igt_fb_is_gen12_ccs_cc_plane(fb, i))
> >  			check_ccs_plane(drm_fd, fb, i);
> > -		else if (igt_fb_is_gen12_ccs_cc_plane(fb, i))
> > +		else if (igt_fb_is_gen12_ccs_cc_plane(fb, i) && check_cc_plane)
> >  			check_ccs_cc_plane(drm_fd, fb, i, cc_color);
> >  	}
> >  }
> > @@ -348,7 +348,7 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
> >  		igt_assert_eq(ret, 0);
> >  
> >  	if (check_ccs_planes)
> > -		check_all_ccs_planes(data->drm_fd, fb, cc_color);
> > +		check_all_ccs_planes(data->drm_fd, fb, cc_color, !(data->flags & TEST_RANDOM));
> >  
> >  	fb->fb_id = f.fb_id;
> >  }
> > -- 
> > 2.27.0
> > 
> > _______________________________________________
> > igt-dev mailing list
> > igt-dev@lists.freedesktop.org
> > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Figt-dev&amp;data=04%7C01%7CRodrigo.Siqueira%40amd.com%7C015d075eda3348bce83208d90b44b52e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637553211995281967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=IqMSw%2BtvmobHEOTGjdcrUL%2BE3gW6QlRfavthnqM1%2FVc%3D&amp;reserved=0
> 
> -- 
> Rodrigo Siqueira
> https://siqueira.tech


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

  reply	other threads:[~2021-05-05 10:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29 19:26 [igt-dev] [PATCH i-g-t 0/3] lib/igt_fb: A few changes to fix test runs on ADL_P Imre Deak
2021-04-29 19:26 ` [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Skip CCS color clear value check for randomizing subtests Imre Deak
2021-05-05  0:23   ` Rodrigo Siqueira
2021-05-05 10:27     ` Imre Deak [this message]
2021-05-05 23:07       ` Rodrigo Siqueira
2021-04-29 19:26 ` [igt-dev] [PATCH i-g-t 2/3] lib/igt_fb: Fix stride for render_copy based FB conversions Imre Deak
2021-04-29 19:51   ` Ville Syrjälä
2021-04-30  5:53     ` Zbigniew Kempczyński
2021-04-30 10:29       ` Imre Deak
2021-04-29 19:26 ` [igt-dev] [PATCH i-g-t 3/3] lib/igt_fb: Remove redundant VC4 SAND plane size alignment Imre Deak
2021-04-29 20:42 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_fb: A few changes to fix test runs on ADL_P Patchwork
2021-04-30  0:55 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-05-04 15:00   ` Imre Deak
2021-05-04 15:13     ` Ville Syrjälä
2021-05-04 18:53       ` Imre Deak
2021-05-05  8:06         ` Saarinen, Jani
2021-05-05 21:03           ` Souza, Jose
2021-05-04  9:39 ` [igt-dev] [PATCH i-g-t 0/3] " Juha-Pekka Heikkila
2021-05-04 12:07 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_fb: A few changes to fix test runs on ADL_P (rev2) Patchwork
2021-05-04 13:45 ` [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=20210505102737.GA126925@ideak-desk.fi.intel.com \
    --to=imre.deak@intel.com \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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.