]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/icl: Handle expanded PLANE_CTL_FORMAT field
authorJames Ausmus <james.ausmus@intel.com>
Tue, 30 Jan 2018 13:49:16 +0000 (11:49 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 31 Jan 2018 16:28:50 +0000 (14:28 -0200)
commitb597277643fef8f2eab35a6c812b6f98094a0de1
tree1179f5f5d2df1dde2135f45471f5d42344b2556a
parent4357ce07e6bff1809f25eaae485fac4989296816
drm/i915/icl: Handle expanded PLANE_CTL_FORMAT field

ICL+ adds changes the PLANE_CTL_FORMAT field from [27:24] to [27:23],
however, all existing PLANE_CTL_FORMAT_* definitions still map to the
correct values.  Add an ICL_PLANE_CTL_FORMAT_MASK definition, and use
that for masking for the conversion to fourcc.

v2: No changes

v3: Change new definition name, drop comment (Rodrigo)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: James Ausmus <james.ausmus@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180130134918.32283-8-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c