public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 0/2] CRTC background color support for i915
@ 2015-10-23  0:25 Matt Roper
  2015-10-23  0:25 ` [PATCH 1/2] drm: Add infrastructure for CRTC background color property Matt Roper
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Matt Roper @ 2015-10-23  0:25 UTC (permalink / raw)
  To: intel-gfx; +Cc: dri-devel

Recent Intel platforms (SKL+) support a background canvas color below the
hardware planes.  This background color can be seen on areas not covered by a
plane, or if we program the hardware with various plane blending modes.

Chandra Konduru previously took a stab at writing i915 patches to support this
feature, but we were in the middle of the great i915 atomic transition at the
time, so there was too much driver churn to ever get them in.  Now that i915
atomic work has settled down a bit, let's make another attempt to get this
feature support in. 

One of the items that came up in review of Chandra's earlier patches was that
although userspace needs to pass a color value to the kernel, it would be best
if userspace didn't have to care about the formatting of color values used by
the underyling hardware (i.e., number of bits, ordering of R,G,B components,
etc.).  The first patch here aims to address that by setting up an 'RGBA'
property type, specifying a fixed bit layout (with 16bpc), and providing helper
macros to fetch specific color bits with the desired precision.  This should
prevent drivers from trying to shove property values directly into the
hardware, which could lead to incompatibility between platforms if we aren't
careful.

A libdrm patch that provides helper macros to build color values of the
appropriate format will be provided as a followup, as will an update to
the i-g-t test for this feature (which is surprisingly already merged, even
though the kernel support isn't there yet).

Cc: dri-devel@lists.freedesktop.org
Cc: Chandra Konduru <chandra.konduru@intel.com>

Matt Roper (2):
  drm: Add infrastructure for CRTC background color property
  drm/i915/skl: Add support for pipe background color

 Documentation/DocBook/gpu.tmpl       | 10 +++++++-
 drivers/gpu/drm/drm_atomic.c         |  4 +++
 drivers/gpu/drm/drm_crtc.c           | 33 ++++++++++++++++++++++++
 drivers/gpu/drm/i915/i915_debugfs.c  |  9 +++++++
 drivers/gpu/drm/i915/i915_reg.h      | 10 ++++++++
 drivers/gpu/drm/i915/intel_display.c | 43 +++++++++++++++++++++++++++++++
 include/drm/drm_crtc.h               | 49 ++++++++++++++++++++++++++++++++++++
 7 files changed, 157 insertions(+), 1 deletion(-)

-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-11-18 23:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23  0:25 [PATCH 0/2] CRTC background color support for i915 Matt Roper
2015-10-23  0:25 ` [PATCH 1/2] drm: Add infrastructure for CRTC background color property Matt Roper
2015-10-23  1:26   ` kbuild test robot
2015-11-18 21:35   ` Bob Paauwe
2015-11-18 22:55     ` Matt Roper
2015-11-18 23:09   ` Emil Velikov
2015-10-23  0:25 ` [PATCH 2/2] drm/i915/skl: Add support for pipe background color Matt Roper
2015-10-23  0:39   ` [Intel-gfx] " kbuild test robot
2015-10-23  1:08   ` kbuild test robot
2015-11-18 21:43   ` Bob Paauwe
2015-10-23  0:26 ` [PATCH libdrm] xf86drmMode: Add RGBA property helpers Matt Roper
2015-10-23  0:27 ` [PATCH i-g-t 1/2] igt_kms: Set atomic capability bit Matt Roper
2015-10-23  0:27   ` [PATCH i-g-t 2/2] kms_crtc_background_color: Update to match kernel interface Matt Roper
2015-10-23  8:05   ` [PATCH i-g-t 1/2] igt_kms: Set atomic capability bit Daniel Vetter
2015-10-26  9:14     ` Daniel Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox