]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Remove fb hsub/vsub alignment requirement
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Mar 2017 18:12:15 +0000 (20:12 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Mar 2017 17:44:15 +0000 (19:44 +0200)
commit438f750a8d12ca0e94e2440ac7aca449be1df958
tree86a08eb6df418b21701d82447268100fb4aa5556
parentf58530fae1a237d03c8230b1cfa01090bdef2e2f
drm: Remove fb hsub/vsub alignment requirement

Allow framebuffers dimesions to be misaligned w.r.t. the subsampling
factors. No real reason the core should have to enforce this, and
it definitely starts to cause us issues with the i915 CCS support.
So let's just lift the restriction.

Let's start to round up when computing the color plane dimesions
so that we'll not end up with too low an estimate for the memory
requirements and whatnot.

Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170321181218.10042-3-ville.syrjala@linux.intel.com
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
drivers/gpu/drm/drm_framebuffer.c