summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2017-04-04 10:35:08 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-04-25 17:58:35 +0900
commit78bbf8edeac318510ff12508d6f597f3c6d62cc3 (patch)
tree071ed67334291be7d79bc550a3bf332f9f16a512
parent9bf00bbae21c4e9da4fcaba6fdd20f468ef8e597 (diff)
downloadlibdrm-78bbf8edeac318510ff12508d6f597f3c6d62cc3.tar.gz
libdrm-78bbf8edeac318510ff12508d6f597f3c6d62cc3.tar.bz2
libdrm-78bbf8edeac318510ff12508d6f597f3c6d62cc3.zip
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>
-rw-r--r--nexell/nexell_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexell/nexell_drm.c b/nexell/nexell_drm.c
index 8a8201e2..38b904ac 100644
--- a/nexell/nexell_drm.c
+++ b/nexell/nexell_drm.c
@@ -42,7 +42,7 @@ int nx_alloc_gem(int drm_fd, int size, int flags)
struct nx_drm_gem_create arg = { 0, };
int ret;
- arg.size = size;
+ arg.size = (uint64_t)size;
arg.flags = flags;
ret = drmCommandWriteRead(drm_fd, DRM_NX_GEM_CREATE, &arg,