Message ID | 1431443602-22886-6-git-send-email-damien.lespiau@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Reviewed-by: Chandra Konduru <Chandra.konduru@intel.com> > -----Original Message----- > From: Intel-gfx [mailto:intel-gfx-bounces@lists.freedesktop.org] On Behalf Of > Damien Lespiau > Sent: Tuesday, May 12, 2015 8:13 AM > To: intel-gfx@lists.freedesktop.org > Subject: [Intel-gfx] [PATCH 05/10] drm/i915/skl: Support the advertized index > format > > We advertize C8 in the primary plane formats didn't have the corresponding > code to set PLANE_CTL accordingly. > > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> > --- > drivers/gpu/drm/i915/intel_display.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_display.c > b/drivers/gpu/drm/i915/intel_display.c > index 49d7227..dadb52a 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -2956,6 +2956,9 @@ u32 skl_plane_ctl_format(uint32_t pixel_format) > u32 format = 0; > > switch (pixel_format) { > + case DRM_FORMAT_C8: > + format = PLANE_CTL_FORMAT_INDEXED; > + break; > case DRM_FORMAT_RGB565: > format = PLANE_CTL_FORMAT_RGB_565; > break; > -- > 2.1.0 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 49d7227..dadb52a 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -2956,6 +2956,9 @@ u32 skl_plane_ctl_format(uint32_t pixel_format) u32 format = 0; switch (pixel_format) { + case DRM_FORMAT_C8: + format = PLANE_CTL_FORMAT_INDEXED; + break; case DRM_FORMAT_RGB565: format = PLANE_CTL_FORMAT_RGB_565; break;
We advertize C8 in the primary plane formats didn't have the corresponding code to set PLANE_CTL accordingly. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> --- drivers/gpu/drm/i915/intel_display.c | 3 +++ 1 file changed, 3 insertions(+)