vrend_renderer: export egl and gbm to vrend_renderer

vrend_renderer will use these handles.

Reviewed-by: David Riley <davidriley@chromium.org>
Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gurchetan Singh 5 years ago
parent 309b2c5017
commit 7f6e1d67ba
  1. 1
      src/virgl_egl.h
  2. 7
      src/vrend_renderer.c

@ -24,6 +24,7 @@
#ifndef VIRGL_EGL_H #ifndef VIRGL_EGL_H
#define VIRGL_EGL_H #define VIRGL_EGL_H
#include "virglrenderer.h"
#include "vrend_renderer.h" #include "vrend_renderer.h"
struct virgl_egl; struct virgl_egl;
struct virgl_gbm; struct virgl_gbm;

@ -57,6 +57,13 @@
#include <sys/eventfd.h> #include <sys/eventfd.h>
#endif #endif
#ifdef HAVE_EPOXY_EGL_H
#include "virgl_gbm.h"
#include "virgl_egl.h"
extern struct virgl_gbm *gbm;
extern struct virgl_egl *egl;
#endif
/* debugging via KHR_debug extension */ /* debugging via KHR_debug extension */
int vrend_use_debug_cb = 0; int vrend_use_debug_cb = 0;

Loading…
Cancel
Save