drm/msm/mdp: Add Software Pixel Extension support
authorStephane Viau <sviau@codeaurora.org>
Tue, 15 Sep 2015 12:41:52 +0000 (08:41 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 22 Oct 2015 19:39:56 +0000 (15:39 -0400)
commit8e2930c6cfb45acc00da9bd6779f5fdd6ec4cb03
treec158da4a58de9859079f768b0f37af029956e072
parent95651cd926bfa37036d7011a65421ab0db1b4959
drm/msm/mdp: Add Software Pixel Extension support

In order to produce an image, the scalar needs to be fed extra
pixels. These top/bottom/left/right values depend on a various of
factors, including resolution, scaling type, phase step and
initial phase.

Pixel Extension are programmed by hardware in most targets - and
can be overwritten by software. For some targets (e.g.: msm8996),
software *must* program those registers.

In order to ease this computation, let's always use bilinear
filters, which are easier to program from kernel. Eventually,
all of these values will come down from user space for better
quality.

Signed-off-by: Stephane Viau <sviau@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
drivers/gpu/drm/msm/mdp/mdp_kms.h