YaGL: We now report render type to user space
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Fri, 7 Dec 2012 09:20:23 +0000 (13:20 +0400)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 9 Apr 2014 05:42:17 +0000 (14:42 +0900)
Change-Id: Iedf70ba5452640a76b68dcbe08dc0e9cdff321ea

drivers/gpu/yagl/yagl_driver.c
drivers/gpu/yagl/yagl_version.h

index 2993342d0aee7174e78fd52ab7d8f058210b44f3..90743c5e23184cbb047af7adcf48ad3650834ac6 100644 (file)
@@ -218,6 +218,7 @@ static int yagl_misc_mmap(struct file *file, struct vm_area_struct *vma)
 
         int i;
         unsigned long addr;
+        u32 render_type;
 
         if (yfile->buff) {
             dprintk("%s: marshalling buffer already mapped\n",
@@ -280,9 +281,12 @@ static int yagl_misc_mmap(struct file *file, struct vm_area_struct *vma)
             goto out;
         }
 
+        render_type = yagl_marshal_get_uint32(&buff);
+
         buff = yfile->buff;
 
         yagl_marshal_put_uint32(&buff, yfile->index);
+        yagl_marshal_put_uint32(&buff, render_type);
 
         buff = NULL;
 
index 44eb72ac56cd526279d5380f0f20e76b939dfa2b..bd185bf061458807ae2d36b0d3952df623802eff 100644 (file)
@@ -6,7 +6,7 @@
 /*
  * Version number.
  */
-#define YAGL_VERSION 11
+#define YAGL_VERSION 12
 
 /*
  * Device control codes magic.