]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fbc: Handle 16bpp compression limit better
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 10 Jun 2021 18:32:33 +0000 (21:32 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Jun 2021 18:48:02 +0000 (21:48 +0300)
commitd502f6c4389f27fd316c417cfc58d69bf2831839
treeebe10beae5de8b8e114f2d5f6d94c414bac78e35
parent337e54f77cee46c5d0de43370fb6bb38c0794890
drm/i915/fbc: Handle 16bpp compression limit better

The limit++ for the 16bpp case is nonsense since the
compression limit is always supposed to be power of two.
Replace it with <<=1.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210610183237.3920-6-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c