All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damien Lespiau <damien.lespiau@intel.com>
To: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/1] demos: Add intel_plane_rotate test to verify rotation of planes and crtc
Date: Tue, 4 Feb 2014 11:46:46 +0000	[thread overview]
Message-ID: <20140204114646.GA25630@strange.amr.corp.intel.com> (raw)
In-Reply-To: <1391513747.21527.8.camel@sagar-desktop>

On Tue, Feb 04, 2014 at 05:05:47PM +0530, Sagar Arun Kamble wrote:
> On Tue, 2014-02-04 at 11:25 +0000, Damien Lespiau wrote:
> > On Tue, Feb 04, 2014 at 12:18:24PM +0100, Daniel Vetter wrote:
> > > On Sat, Feb 01, 2014 at 12:43:48AM +0530, sagar.a.kamble@intel.com wrote:
> > > > From: Sagar Kamble <sagar.a.kamble@intel.com>
> > > > 
> > > > This test will verify the 180 degree rotation of sprite and crtc planes.
> > > > It will allow user to control rotation separately for crtc and sprite
> > > > planes.
> > > > 
> > > > Signed-off-by: Sagar Kamble <sagar.a.kamble@intel.com>
> > > 
> > > What I actually want for upstreaming is a fully automated testcase as part
> > > of our i-g-t testsuite which uses the CRC support. Having testing tools
> > > for developers is neat, but if it's not automated it's essentially
> > > untested.
> > > 
> > > I don't mind merging this if there's someone else who'll ack it though.
> > 
> > While having such a tool helps development for sure, let's try to take a
> > better approach on this.
> > 
> > I'm currently reworking how we write display tests to not have 1000
> > lines code to setup the display pipeline in every test, leave me a few
> > days and we should be in a much better place to write kms tests. Of
> > course, we also really want a CRC enabled test.
> > 
> 
> I am trying to enable CRC approach for this test however I have
> following opens:
> 1. How do I calculate CRC for reference image(blend of primary and
> overlay planes) prepared by i-g-t test.

We can't do that, the algorithms (that can change on a per platform
basis) for computing the CRCs isn't public. What we can do on the other
hand is comparing two CRCs and figure out if what we are testing is the
same as a reference frame.

For the 180 rotation case, we can, for instance:

  - draw a 180 rotated fb with cairo, grab that CRC
  - draw a 0 rotated fb, rotate it with hardware, grab that CRC
  - the two CRCs should be equal

For the fb we can paint the upper half in red and the lower half in
blue. The 180 rotated version would do the opposite.

> 2. Will this CRC result match the pipe CRC calculated by display pipe
> for the blend output.

It should be yes. The AUTO pipe CRC source should do that for you (ie
the CRC at the end of the pipe, after blending)

> 3. Will plane based CRC check suffice for these tests as of now given
> above two opens?

We could use plane CRCs, but it'd be more portable (across platforms) to
use the AUTO source as it'll also work with DP on BYT (you have some
limitations there). 

-- 
Damien

  reply	other threads:[~2014-02-04 11:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-31 19:13 [PATCH 1/1] demos: Add intel_plane_rotate test to verify rotation of planes and crtc sagar.a.kamble
2014-02-04 11:18 ` Daniel Vetter
2014-02-04 11:23   ` Chris Wilson
2014-02-04 11:25   ` Damien Lespiau
2014-02-04 11:35     ` Sagar Arun Kamble
2014-02-04 11:46       ` Damien Lespiau [this message]
2014-02-04 12:08         ` Ville Syrjälä
2014-02-04 12:13           ` Damien Lespiau

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=20140204114646.GA25630@strange.amr.corp.intel.com \
    --to=damien.lespiau@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=sagar.a.kamble@intel.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.