|
|
|
@ -22,6 +22,7 @@ |
|
|
|
|
* |
|
|
|
|
**************************************************************************/ |
|
|
|
|
|
|
|
|
|
#include "vrend_debug.h" |
|
|
|
|
#include "vrend_winsys.h" |
|
|
|
|
|
|
|
|
|
#ifdef HAVE_EPOXY_GLX_H |
|
|
|
@ -30,6 +31,8 @@ |
|
|
|
|
|
|
|
|
|
#include <stddef.h> |
|
|
|
|
|
|
|
|
|
#include "util/macros.h" |
|
|
|
|
|
|
|
|
|
enum { |
|
|
|
|
CONTEXT_NONE, |
|
|
|
|
CONTEXT_EGL, |
|
|
|
@ -135,7 +138,7 @@ int vrend_winsys_init_external(void *egl_display) |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
virgl_renderer_gl_context vrend_winsys_create_context(struct virgl_gl_ctx_param *param) |
|
|
|
|
virgl_renderer_gl_context vrend_winsys_create_context(UNUSED struct virgl_gl_ctx_param *param) |
|
|
|
|
{ |
|
|
|
|
#ifdef HAVE_EPOXY_EGL_H |
|
|
|
|
if (use_context == CONTEXT_EGL) |
|
|
|
@ -148,7 +151,7 @@ virgl_renderer_gl_context vrend_winsys_create_context(struct virgl_gl_ctx_param |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void vrend_winsys_destroy_context(virgl_renderer_gl_context ctx) |
|
|
|
|
void vrend_winsys_destroy_context(UNUSED virgl_renderer_gl_context ctx) |
|
|
|
|
{ |
|
|
|
|
#ifdef HAVE_EPOXY_EGL_H |
|
|
|
|
if (use_context == CONTEXT_EGL) { |
|
|
|
@ -164,7 +167,7 @@ void vrend_winsys_destroy_context(virgl_renderer_gl_context ctx) |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int vrend_winsys_make_context_current(virgl_renderer_gl_context ctx) |
|
|
|
|
int vrend_winsys_make_context_current(UNUSED virgl_renderer_gl_context ctx) |
|
|
|
|
{ |
|
|
|
|
#ifdef HAVE_EPOXY_EGL_H |
|
|
|
|
if (use_context == CONTEXT_EGL) |
|
|
|
|