@ -42,7 +42,6 @@
# include "virgl_gbm.h"
# include "virgl_gbm.h"
# include "virgl_egl.h"
# include "virgl_egl.h"
struct virgl_gbm * gbm = NULL ;
struct virgl_gbm * gbm = NULL ;
struct virgl_egl * egl = NULL ;
# endif
# endif
# ifdef HAVE_EPOXY_GLX_H
# ifdef HAVE_EPOXY_GLX_H
@ -50,14 +49,6 @@ struct virgl_egl *egl = NULL;
static struct virgl_glx * glx_info ;
static struct virgl_glx * glx_info ;
# endif
# endif
enum {
CONTEXT_NONE ,
CONTEXT_EGL ,
CONTEXT_GLX
} ;
static int use_context = CONTEXT_NONE ;
/* new API - just wrap internal API for now */
/* new API - just wrap internal API for now */
int virgl_renderer_resource_create ( struct virgl_renderer_resource_create_args * args , struct iovec * iov , uint32_t num_iovs )
int virgl_renderer_resource_create ( struct virgl_renderer_resource_create_args * args , struct iovec * iov , uint32_t num_iovs )
@ -207,18 +198,6 @@ int virgl_renderer_resource_get_info(int res_handle,
return ret ;
return ret ;
}
}
int virgl_has_gl_colorspace ( void )
{
bool egl_colorspace = false ;
# ifdef HAVE_EPOXY_EGL_H
if ( egl )
egl_colorspace = virgl_has_egl_khr_gl_colorspace ( egl ) ;
# endif
return use_context = = CONTEXT_NONE | |
use_context = = CONTEXT_GLX | |
( use_context = = CONTEXT_EGL & & egl_colorspace ) ;
}
void virgl_renderer_get_cap_set ( uint32_t cap_set , uint32_t * max_ver ,
void virgl_renderer_get_cap_set ( uint32_t cap_set , uint32_t * max_ver ,
uint32_t * max_size )
uint32_t * max_size )
{
{