From: Stanislav Vorobiov Date: Fri, 7 Dec 2012 09:20:23 +0000 (+0400) Subject: YaGL: We now report render type to user space X-Git-Tag: submit/tizen_common/20140905.094502~174 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6856629c50fcb94994dbc1cb123307d0dd8706b5;p=sdk%2Femulator%2Femulator-kernel.git YaGL: We now report render type to user space Change-Id: Iedf70ba5452640a76b68dcbe08dc0e9cdff321ea --- diff --git a/drivers/gpu/yagl/yagl_driver.c b/drivers/gpu/yagl/yagl_driver.c index 2993342d0aee..90743c5e2318 100644 --- a/drivers/gpu/yagl/yagl_driver.c +++ b/drivers/gpu/yagl/yagl_driver.c @@ -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; diff --git a/drivers/gpu/yagl/yagl_version.h b/drivers/gpu/yagl/yagl_version.h index 44eb72ac56cd..bd185bf06145 100644 --- a/drivers/gpu/yagl/yagl_version.h +++ b/drivers/gpu/yagl/yagl_version.h @@ -6,7 +6,7 @@ /* * Version number. */ -#define YAGL_VERSION 11 +#define YAGL_VERSION 12 /* * Device control codes magic.