[GEM] Change the base path of GEM driver
authorDongju Chae <dongju.chae@samsung.com>
Wed, 21 Aug 2019 09:35:53 +0000 (18:35 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Wed, 21 Aug 2019 10:15:24 +0000 (19:15 +0900)
This commit changes the base path of GEM driver
: /dev/dri/cardXX --> /dev/cardXX

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
meson_options.txt
src/core/gem/GEMdrvAPI.c
src/test/unittests/ne_core_gem_test.cpp

index 5ada8ec..5ab7fdc 100644 (file)
@@ -1,5 +1,5 @@
 option('comm_opt', type : 'string', value : 'ip')
 option('resv_mem_size', type : 'string', value : '512M')
 option('working_dir', type : 'string', value : '/tmp/')
-option('log_dir', type : 'string', value : '/tmp')
+option('log_dir', type : 'string', value : '/tmp/')
 option('enable_test_mode', type : 'boolean', value : true)
index 763fcc0..937058e 100644 (file)
@@ -35,7 +35,7 @@
 #include <ne-conf.h>
 #include <ne-utils.h>
 
-#define DRM_BASE_PATH "/dev/dri/card"
+#define DRM_BASE_PATH "/dev/card"
 #define GEM_NAME      "cgem"
 #define ALIGN_SIZE    4096
 #define DUMMY_HANDLE  0xdeadbeef
index c52ec61..86cb97f 100644 (file)
@@ -205,7 +205,8 @@ TEST (ne_core_gem_test, self_import_dmabuf)
 int
 main (int argc, char **argv)
 {
-  load_conf_default();
+  /** NULL is OK because it will load load_conf_default */
+  load_conf (argv[1]);
 
   testing::InitGoogleTest (&argc, argv);