From 6856629c50fcb94994dbc1cb123307d0dd8706b5 Mon Sep 17 00:00:00 2001 From: Stanislav Vorobiov Date: Fri, 7 Dec 2012 13:20:23 +0400 Subject: [PATCH] YaGL: We now report render type to user space Change-Id: Iedf70ba5452640a76b68dcbe08dc0e9cdff321ea --- drivers/gpu/yagl/yagl_driver.c | 4 ++++ drivers/gpu/yagl/yagl_version.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/yagl/yagl_driver.c b/drivers/gpu/yagl/yagl_driver.c index 2993342..90743c5 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 44eb72a..bd185bf 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. -- 2.7.4