drm/i915: Enable hw workaround to bypass alpha
authorVandita Kulkarni <vandita.kulkarni@intel.com>
Thu, 21 Jun 2018 15:13:56 +0000 (20:43 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 21 Jun 2018 18:25:00 +0000 (20:25 +0200)
commite16a375086337af3fcf21dbd512e1573049ba6cb
treec0ed39f46abc115298ae4bd19dc80255debdeeec
parentbd99ce085f165a07fe8b33ad04157b91c91b8668
drm/i915: Enable hw workaround to bypass alpha

Alpha blending with alpha 0 and 0xff passes through
alpha math and rounding logic causing differences
compared to fully transparent or opaque plane,resulting
in CRC mismatch.
This WA on icl and above enables hardware to bypass alpha
math and rounding for per pixel alpha values of 00 and 0xff

v2: Fix patchwork checkpatch warnings.

Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1529594036-25036-1-git-send-email-vandita.kulkarni@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c