libdrm : add nexell api
authorjino.cho <jino.cho@samsung.com>
Thu, 25 Aug 2016 09:42:35 +0000 (18:42 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 7 Dec 2022 09:10:51 +0000 (18:10 +0900)
commitbc257662c0a10c7fe671ea67a90a11b8fc537e06
treecf6d6d2f084b109b80999cc305c9fcba12519a16
parent53b470217f5fe509fd6dea7c73e01861c7103dec
libdrm : add nexell api

This patch imports the nexell api of the libdrm

Change-Id: If8009fc30f46edcf4fdcc04679523e590e165003
Signed-off-by: jino.cho <jino.cho@samsung.com>
nexell: Add meson build system

Change-Id: I58d2e2b7a2605f087bf78e340ba156b8b8399da7
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
packaging: enable nexell and add lib

Change-Id: I22b2e6324bf6b07f289bb7b33054b6f80dbee945
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
nexell: add explicit cast for gem size

The nexell gem alloc api has int parameter, so it should be casted
to uint64_t for kernel gem alloc interface.

Change-Id: Icc98b42645fd8ec234b99193304b5f91bcdd3389
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
tests: add nexell drm to default test modules

Add nexell drm to test modules for the artik devices.

Change-Id: I5f15f6bf28064ebc6ad178ba40ada0c6e666ad49
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
nexell: add gem buffer type

Add gem buffer type to sync with kernel header.

libtbm nexell backend refers to gem buffer type for cache control.
So this patch adds the buffer type to identify if cache operation
is required or not.

Change-Id: I7760a54496a1a9e7c2f17f0a77e640e346d9b455
Signed-off-by: Inki Dae <inki.dae@samsung.com>
nexell: fix to check return of drmIoctl()

Fix to check return value of drmIoctl().

Change-Id: I456184820278ee38ff1a7e5bba283acb8c2ea99f
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
nexell: fix signed/unsinged cast

The commit 4f6c18f11c68 ("nexell: add explicit cast for gem size")
introduced signed 32bit value into unsigned 64bit value and it can
cause wrong value conversion. Fix to cast signed 32bit value into
unsigned 32bit value first and then cast into unsigned 64bit value.

Change-Id: I9550b74987ddd981e905f3b5085d4abaede01c65
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
nexell: add drm_public macro for nexell drm api

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
 Conflicts:
meson.build
tests/util/kms.c

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
meson.build
meson_options.txt
nexell/libdrm_nexell.pc.in [new file with mode: 0644]
nexell/meson.build [new file with mode: 0644]
nexell/nexell-symbols.txt [new file with mode: 0644]
nexell/nexell_drm.c [new file with mode: 0644]
nexell/nexell_drm.h [new file with mode: 0644]
nexell/nexell_drmif.h [new file with mode: 0644]
packaging/libdrm.spec
tests/util/kms.c