OSDN Git Service

drm/exynos: ipp: Rework checking for the correct buffer formats
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 7 Jun 2018 11:06:06 +0000 (13:06 +0200)
committerInki Dae <inki.dae@samsung.com>
Fri, 29 Jun 2018 09:02:55 +0000 (18:02 +0900)
commit69705ad21029b6e92c9facb0eb12cde1a4fd52b7
treecbf2e8adcdd8f3fe00ae060c6bc9602dfc929f0e
parent2d8aa4ef6aac566617052640e9bb07ecb9c45183
drm/exynos: ipp: Rework checking for the correct buffer formats

Prepare a common function for size and scale checks and call it for
source and destination buffers. Then also move there the state-less checks
from exynos_drm_ipp_task_setup_buffer, so the format information is already
available in limits processing. Finally perform the IPP_LIMIT_BUFFER check
on the real width of the buffer (the width calculated from the provided
buffer pitch).

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_ipp.c