|
#define | EGL_TRACE(...) U_LOG_IFL_T(log_level, __VA_ARGS__) |
|
#define | EGL_DEBUG(...) U_LOG_IFL_D(log_level, __VA_ARGS__) |
|
#define | EGL_INFO(...) U_LOG_IFL_I(log_level, __VA_ARGS__) |
|
#define | EGL_WARN(...) U_LOG_IFL_W(log_level, __VA_ARGS__) |
|
#define | EGL_ERROR(...) U_LOG_IFL_E(log_level, __VA_ARGS__) |
|
#define | DESTROY_CONTEXT(DPY, CTX) destroy_context_with_check(DPY, CTX, __func__) |
|
#define | DUMP_EXTENSION_STATUS(EXT) EGL_DEBUG(" - " #EXT ": %s", GLAD_##EXT ? "true" : "false") |
|
|
static xrt_result_t | client_egl_insert_fence (struct xrt_compositor *xc, xrt_graphics_sync_handle_t *out_handle) |
|
static void | save_context (struct client_egl_context *ctx) |
|
static bool | restore_context (struct client_egl_context *ctx) |
|
static const char * | egl_error_str (EGLint ret) |
|
static void | destroy_context_with_check (EGLDisplay display, EGLContext context, const char *func) |
|
static XRT_MAYBE_UNUSED bool | has_extension (const char *extensions, const char *ext) |
|
static void | ensure_native_fence_is_loaded (EGLDisplay dpy, PFNEGLGETPROCADDRESSPROC get_gl_procaddr) |
|
static xrt_result_t | create_context (EGLDisplay display, EGLConfig config, EGLContext app_context, EGLint api_type, EGLContext *out_our_context) |
|
static xrt_result_t | load_gl_functions (EGLint egl_client_type, PFNEGLGETPROCADDRESSPROC get_gl_procaddr) |
|
static xrt_result_t | check_context_and_debug_print (EGLint egl_client_type) |
|
static xrt_result_t | get_client_gl_functions (client_gl_swapchain_create_func_t *out_sc_create_func, client_gl_insert_fence_func_t *out_insert_fence) |
|
static xrt_result_t | client_egl_context_begin (struct xrt_compositor *xc, enum client_gl_context_reason reason) |
|
static void | client_egl_context_end (struct xrt_compositor *xc, enum client_gl_context_reason reason) |
|
static void | client_egl_compositor_destroy (struct xrt_compositor *xc) |
|
xrt_result_t | xrt_gfx_provider_create_gl_egl (struct xrt_compositor_native *xcn, EGLDisplay display, EGLConfig config, EGLContext context, PFNEGLGETPROCADDRESSPROC get_gl_procaddr, bool renderdoc_enabled, struct xrt_compositor_gl **out_xcgl) |
|