libdrm/exynos: add test application for 2d gpu.
authorInki Dae <inki.dae@samsung.com>
Mon, 18 Feb 2013 12:51:00 +0000 (21:51 +0900)
committerRob Clark <robdclark@gmail.com>
Fri, 8 Mar 2013 16:49:42 +0000 (11:49 -0500)
commitbbf6e3dea3c79ea8e0c3e1dd8f80014201e003fc
treeccf81397767c8ee57073fb6e1e4fef45a1acb766
parentade2ad2d66ac341a12eca37bcb30d40199eb4e02
libdrm/exynos: add test application for 2d gpu.

This patch adds library and test application for g2d gpu(fimg2d).

The fimg2d hardware is a 2D graphics accelerator(G2D) that
supports Bit Block Transfer(BitBLT).

The library includes the following primitive drawing operations:
.solid fill - This operation fills the given buffer with
the given color data.
.copy - This operation copies contents in source buffer to
destination buffer.
.copy_with_scale - This operation copies contents in source buffer
to destination buffer scaling up or down properly.
.blend - This operation blends contents in source buffer with
the ones in destination buffer.

And the above operations uses gem handle or user space address
allocated by malloc() as source or destination buffer.

And the test application includes just simple primitive drawing
tests with the above library.
And the guide to test is as the following,
"#exynos_fimg2d_test -s connector_id@crtc_id:mode"

With this above simple command, four primitive drawing operations
would be called step by step and also rendered on the output device
to the given connector and crtc id.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
configure.ac
exynos/Makefile.am
exynos/exynos_drm.h
exynos/exynos_fimg2d.c [new file with mode: 0644]
exynos/fimg2d.h [new file with mode: 0644]
exynos/fimg2d_reg.h [new file with mode: 0644]
tests/Makefile.am
tests/exynos/Makefile.am [new file with mode: 0644]
tests/exynos/exynos_fimg2d_test.c [new file with mode: 0644]