struct page **pages;
u32 num_pages;
- /* Render type for this client, filled on 'open'. */
+ /* Render type and host OpenGL version for this client, filled on 'open'. */
u32 render_type;
+ u32 gl_version;
/* List of mlock'ed memory regions. */
struct list_head mlock_list;
}
yfile->render_type = yagl_marshal_get_uint32_t(&buff);
+ yfile->gl_version = yagl_marshal_get_uint32_t(&buff);
kunmap(yfile->pages[0]);
case YAGL_IOC_GET_USER_INFO:
value.user_info.index = yfile->index;
value.user_info.render_type = yfile->render_type;
+ value.user_info.gl_version = yfile->gl_version;
if (copy_to_user((struct yagl_user_info __user*)arg,
&value.user_info,
sizeof(value.user_info)) != 0) {
{
unsigned int index;
unsigned int render_type;
+ unsigned int gl_version;
};
#define YAGL_IOC_GET_USER_INFO _IOR(YAGL_IOC_MAGIC, 1, struct yagl_user_info)