All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org, ville.syrjala@intel.com,
	martin.peres@intel.com, juha-pekka.heikkila@intel.com
Subject: Re: [PATCH xf86-video-intel v6] sna: Added AYUV format support for textured and sprite video adapters.
Date: Thu, 8 Nov 2018 19:50:52 +0200	[thread overview]
Message-ID: <20181108175052.GD9144@intel.com> (raw)
In-Reply-To: <154169743293.30559.17000081094900897454@skylake-alporthouse-com>

On Thu, Nov 08, 2018 at 05:17:13PM +0000, Chris Wilson wrote:
> Quoting Stanislav Lisovskiy (2018-11-02 10:06:03)
> > v2: Renamed DRM_FORMAT_XYUV to DRM_FORMAT_XYUV8888.
> >     Added comment about AYUV byte ordering in Gstreamer.
> > 
> > v3: Removed sna_composite_op flags related change to the separate patch.
> > 
> > v4: Fixed review comments, done code refactoring
> > 
> > v5: Fixed following review comments:
> >     - Fixed comment in shader code for ayuv kernel.
> >     - Fixed naming to VIDEO_AYUV_BT601/BT709 for ayuv kernels.
> >     - Removed duplicate gen9_kernel parameter, left from previous patches
> >     - Added colorspace handling for new AYUV kernel
> >     - Fixed naming of sna_copy_packed_data_ayuv to sna_copy_ayuv_data
> >     - Started using standard bswap_32 function for byte swapping in sna_copy_ayuv_data
> >     - Removed redundant code in sna_copy_ayuv_data so that it looks more neat
> >     - Fixed XVIMAGE_AYUV structure initialization to contain proper byte sequence for GST
> >     - Fixed bogus comment about subsampling for DRM_FORMAT_XYUV8888
> >     - Fixed AYUV advertisement for all platforms
> >     - Removed unnecessary RGB888 declaration.
> > 
> > v6:
> >     - Fixed surface format not to use alpha as supposed
> >     - Now doing byte swapping always during copy
> >     - Changed hack, required for GST to work to be at one place
> >     - Fixed invalid sampling values for XVIMAGE_AYUV
> >     - Fixed sprite format checking order and images_ayuv definition.
> > 
> > Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
> 
> Ville, happy?

Almost.

> 
> > +       if (reverse_bytes) {

This bool bugs me, replied separately.

> > +               /*
> > +                * Have to reverse bytes order, because the only
> > +                * player which supports AYUV format currently is
> > +                * Gstreamer and it supports in bad way, even though
> > +                * spec says MSB:AYUV, we get the bytes opposite way.
> > +                */
> 
> This worries me. Is there no room for negotiation with Gstreamer so they
> use the format the kernel and HW expects. Though I presume they chose
> their layout for good reason (some TV probably expects it in host
> order.)

Either that or no one ever actually tested it.

One might hope that the component_order[] in the XvImage can be used to
tell the standard AYUV and gst AYUV apart. But probably no one even
looks at that thing. Also not sure how that would work w.r.t. the
fourcc if both needed to be supported.

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-11-08 17:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-02 10:06 [PATCH xf86-video-intel v6] sna: Added AYUV format support for textured and sprite video adapters Stanislav Lisovskiy
2018-11-06 15:33 ` Lisovskiy, Stanislav
2018-11-08 17:17 ` Chris Wilson
2018-11-08 17:50   ` Ville Syrjälä [this message]
2018-11-08 17:47 ` Ville Syrjälä
2018-11-09  8:18   ` Lisovskiy, Stanislav
2018-11-09 13:24     ` Ville Syrjälä

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=20181108175052.GD9144@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=juha-pekka.heikkila@intel.com \
    --cc=martin.peres@intel.com \
    --cc=ville.syrjala@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.