]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: Check g2d cmd list for g2d restrictions
authorYoungJun Cho <yj44.cho@samsung.com>
Mon, 11 Mar 2013 12:17:52 +0000 (21:17 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 20 Mar 2013 10:09:11 +0000 (19:09 +0900)
commitbdf7a85febdf0efff770c70ee6a071b815afd23f
tree4438cf80d988b7aa6fedda3104c8e669eb56d699
parentbc7219086b17d7e0d4f14f1a19fd82c7663a73f8
drm/exynos: Check g2d cmd list for g2d restrictions

This patch checks command list from user for g2d restrictions.

For now, g2d driver wasn't considered for G2D hardware restrictions
properly. The below is the restrictions to G2D hardware and this patch
considers them.
    - width or height value in the command list
has to be in valid range (1 to 8000 pixels)
    - The requested area should be less than buffer size.
    - right has to be bigger than left.
    - bottom has to be bigger than top.

Changelog v2:
- Fix merge conflict.

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c