From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Strasser, Kevin" <kevin.strasser@intel.com>
Cc: David Airlie <airlied@linux.ie>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH v2 RESEND 2/2] drm/i915/icl: Implement half float formats
Date: Mon, 4 Feb 2019 23:24:25 +0200 [thread overview]
Message-ID: <20190204212425.GN20097@intel.com> (raw)
In-Reply-To: <51B6C3CD1F10FB47A5702881E0E230A793D39104@ORSMSX104.amr.corp.intel.com>
On Fri, Feb 01, 2019 at 09:38:57PM +0000, Strasser, Kevin wrote:
> Ville Syrjälä wrote:
> > > @@ -1774,6 +1776,45 @@ static const u32 skl_planar_formats[] = {
> > > DRM_FORMAT_NV12,
> > > };
> > >
> > > +static const uint32_t icl_hdr_plane_formats[] = {
> >
> > Please switch to u32 & co. We recently had a mass conversion in the
> > driver.
>
> Will do. Looks like the CI caught that too.
>
> > > static const u64 skl_plane_format_modifiers_noccs[] = {
> > > I915_FORMAT_MOD_Yf_TILED,
> > > I915_FORMAT_MOD_Y_TILED,
> > > @@ -1917,6 +1958,10 @@ static bool skl_plane_format_mod_supported(struct
> > > drm_plane *_plane,
> > > return true;
> > > /* fall through */
> > > case DRM_FORMAT_C8:
> > > + case DRM_FORMAT_XBGR16161616F:
> > > + case DRM_FORMAT_ABGR16161616F:
> > > + case DRM_FORMAT_XRGB16161616F:
> > > + case DRM_FORMAT_ARGB16161616F:
> > > if (modifier == DRM_FORMAT_MOD_LINEAR ||
> > > modifier == I915_FORMAT_MOD_X_TILED ||
> > > modifier == I915_FORMAT_MOD_Y_TILED)
> > > @@ -2053,11 +2098,21 @@ skl_universal_plane_create(struct drm_i915_private
> > > *dev_priv,
> > > plane->update_slave = icl_update_slave;
> > >
> > > if (skl_plane_has_planar(dev_priv, pipe, plane_id)) {
> > > - formats = skl_planar_formats;
> > > - num_formats = ARRAY_SIZE(skl_planar_formats);
> > > + if (INTEL_GEN(dev_priv) > 10 && plane_id < PLANE_SPRITE2) {
> >
> > is_hdr_plane() is around now, please use it.
>
> I don't think I can use icl_is_hdr_plane here without some refactoring. It
> requires the plane->base to be initialized through drm_universal_plane_init,
> which depends on formats/num_formats pointers to be already set.
Hmm. We should probably just convert it into
icl_is_hdr_plane(struct drm_i915_private *dev_priv,
enum plane_id plane_id);
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-02-04 21:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-01 17:43 [PATCH v2 RESEND 0/2] Support 64 bpp half float formats Kevin Strasser
2019-02-01 17:43 ` [PATCH v2 RESEND 1/2] drm/fourcc: Add " Kevin Strasser
2019-02-01 20:26 ` Ville Syrjälä
2019-02-01 17:43 ` [PATCH v2 RESEND 2/2] drm/i915/icl: Implement " Kevin Strasser
2019-02-01 20:40 ` Ville Syrjälä
2019-02-01 21:38 ` Strasser, Kevin
2019-02-04 21:24 ` Ville Syrjälä [this message]
2019-02-04 22:16 ` Strasser, Kevin
2019-02-01 17:59 ` ✗ Fi.CI.CHECKPATCH: warning for Support 64 bpp half float formats (rev3) Patchwork
2019-02-01 18:20 ` ✓ Fi.CI.BAT: success " Patchwork
2019-02-01 19:59 ` ✓ 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=20190204212425.GN20097@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=airlied@linux.ie \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=kevin.strasser@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.