mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-12 13:29:45 -05:00
render/egl: make wlr_egl private
This commit is contained in:
parent
f70f37a2c2
commit
c22655cffb
2 changed files with 39 additions and 39 deletions
|
|
@ -3,6 +3,45 @@
|
||||||
|
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
|
|
||||||
|
struct wlr_egl {
|
||||||
|
EGLDisplay display;
|
||||||
|
EGLContext context;
|
||||||
|
EGLDeviceEXT device; // may be EGL_NO_DEVICE_EXT
|
||||||
|
struct gbm_device *gbm_device;
|
||||||
|
|
||||||
|
struct {
|
||||||
|
// Display extensions
|
||||||
|
bool KHR_image_base;
|
||||||
|
bool EXT_image_dma_buf_import;
|
||||||
|
bool EXT_image_dma_buf_import_modifiers;
|
||||||
|
|
||||||
|
// Device extensions
|
||||||
|
bool EXT_device_drm;
|
||||||
|
bool EXT_device_drm_render_node;
|
||||||
|
|
||||||
|
// Client extensions
|
||||||
|
bool EXT_device_query;
|
||||||
|
bool KHR_platform_gbm;
|
||||||
|
bool EXT_platform_device;
|
||||||
|
} exts;
|
||||||
|
|
||||||
|
struct {
|
||||||
|
PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT;
|
||||||
|
PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR;
|
||||||
|
PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR;
|
||||||
|
PFNEGLQUERYWAYLANDBUFFERWL eglQueryWaylandBufferWL;
|
||||||
|
PFNEGLQUERYDMABUFFORMATSEXTPROC eglQueryDmaBufFormatsEXT;
|
||||||
|
PFNEGLQUERYDMABUFMODIFIERSEXTPROC eglQueryDmaBufModifiersEXT;
|
||||||
|
PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR;
|
||||||
|
PFNEGLQUERYDISPLAYATTRIBEXTPROC eglQueryDisplayAttribEXT;
|
||||||
|
PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT;
|
||||||
|
PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT;
|
||||||
|
} procs;
|
||||||
|
|
||||||
|
struct wlr_drm_format_set dmabuf_texture_formats;
|
||||||
|
struct wlr_drm_format_set dmabuf_render_formats;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes an EGL context for the given DRM FD.
|
* Initializes an EGL context for the given DRM FD.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -36,45 +36,6 @@ struct wlr_egl_context {
|
||||||
EGLSurface read_surface;
|
EGLSurface read_surface;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wlr_egl {
|
|
||||||
EGLDisplay display;
|
|
||||||
EGLContext context;
|
|
||||||
EGLDeviceEXT device; // may be EGL_NO_DEVICE_EXT
|
|
||||||
struct gbm_device *gbm_device;
|
|
||||||
|
|
||||||
struct {
|
|
||||||
// Display extensions
|
|
||||||
bool KHR_image_base;
|
|
||||||
bool EXT_image_dma_buf_import;
|
|
||||||
bool EXT_image_dma_buf_import_modifiers;
|
|
||||||
|
|
||||||
// Device extensions
|
|
||||||
bool EXT_device_drm;
|
|
||||||
bool EXT_device_drm_render_node;
|
|
||||||
|
|
||||||
// Client extensions
|
|
||||||
bool EXT_device_query;
|
|
||||||
bool KHR_platform_gbm;
|
|
||||||
bool EXT_platform_device;
|
|
||||||
} exts;
|
|
||||||
|
|
||||||
struct {
|
|
||||||
PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT;
|
|
||||||
PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR;
|
|
||||||
PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR;
|
|
||||||
PFNEGLQUERYWAYLANDBUFFERWL eglQueryWaylandBufferWL;
|
|
||||||
PFNEGLQUERYDMABUFFORMATSEXTPROC eglQueryDmaBufFormatsEXT;
|
|
||||||
PFNEGLQUERYDMABUFMODIFIERSEXTPROC eglQueryDmaBufModifiersEXT;
|
|
||||||
PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR;
|
|
||||||
PFNEGLQUERYDISPLAYATTRIBEXTPROC eglQueryDisplayAttribEXT;
|
|
||||||
PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT;
|
|
||||||
PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT;
|
|
||||||
} procs;
|
|
||||||
|
|
||||||
struct wlr_drm_format_set dmabuf_texture_formats;
|
|
||||||
struct wlr_drm_format_set dmabuf_render_formats;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make the EGL context current.
|
* Make the EGL context current.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue