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)
commit2dec17c70e7567f226331c26d8daa0c16d3e7e6d
tree4438cf80d988b7aa6fedda3104c8e669eb56d699
parenta4f19aaab3e69f9d15cc995e3378d27c8ef4f780
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