mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
kdrive/fbdev/fb_glamor.c: Prefix glamor helpers with fbdev_
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt
parent
657eb49b85
commit
125b7c5bef
@@ -47,7 +47,7 @@ fbdev_glamor_egl_cleanup(FbdevScrPriv *scrpriv)
|
||||
}
|
||||
|
||||
static void
|
||||
glamor_egl_make_current(struct glamor_context *glamor_ctx)
|
||||
fbdev_glamor_egl_make_current(struct glamor_context *glamor_ctx)
|
||||
{
|
||||
/* There's only a single global dispatch table in Mesa. EGL, GLX,
|
||||
* and AIGLX's direct dispatch table manipulation don't talk to
|
||||
@@ -138,7 +138,7 @@ fbdevFiniAccel(ScreenPtr pScreen)
|
||||
}
|
||||
|
||||
static Bool
|
||||
glamor_query_devices_ext(EGLDeviceEXT **devices, EGLint *num_devices)
|
||||
fbdev_glamor_query_devices_ext(EGLDeviceEXT **devices, EGLint *num_devices)
|
||||
{
|
||||
EGLint max_devices = 0;
|
||||
|
||||
@@ -178,7 +178,7 @@ glamor_query_devices_ext(EGLDeviceEXT **devices, EGLint *num_devices)
|
||||
}
|
||||
|
||||
static inline Bool
|
||||
glamor_egl_device_matches_config(EGLDeviceEXT device, Bool strict)
|
||||
fbdev_glamor_egl_device_matches_config(EGLDeviceEXT device, Bool strict)
|
||||
{
|
||||
if (!strict) {
|
||||
return TRUE;
|
||||
@@ -232,17 +232,17 @@ fbdev_glamor_egl_init_display(FbdevScrPriv *scrpriv)
|
||||
scrpriv->display = EGL_NO_DISPLAY; \
|
||||
}
|
||||
|
||||
if (glamor_query_devices_ext(&devices, &num_devices)) {
|
||||
if (fbdev_glamor_query_devices_ext(&devices, &num_devices)) {
|
||||
/* Try a strict match first */
|
||||
for (uint32_t i = 0; i < num_devices; i++) {
|
||||
if (glamor_egl_device_matches_config(devices[i], TRUE)) {
|
||||
if (fbdev_glamor_egl_device_matches_config(devices[i], TRUE)) {
|
||||
GLAMOR_EGL_TRY_PLATFORM(EGL_PLATFORM_DEVICE_EXT, devices[i], TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
/* Try a try a less strict match now */
|
||||
for (uint32_t i = 0; i < num_devices; i++) {
|
||||
if (glamor_egl_device_matches_config(devices[i], FALSE)) {
|
||||
if (fbdev_glamor_egl_device_matches_config(devices[i], FALSE)) {
|
||||
GLAMOR_EGL_TRY_PLATFORM(EGL_PLATFORM_DEVICE_EXT, devices[i], TRUE);
|
||||
}
|
||||
}
|
||||
@@ -380,7 +380,7 @@ glamor_egl_screen_init(ScreenPtr pScreen, struct glamor_context *glamor_ctx)
|
||||
glamor_ctx->display = scrpriv->display;
|
||||
glamor_ctx->ctx = scrpriv->ctx;
|
||||
glamor_ctx->surface = EGL_NO_SURFACE;
|
||||
glamor_ctx->make_current = glamor_egl_make_current;
|
||||
glamor_ctx->make_current = fbdev_glamor_egl_make_current;
|
||||
}
|
||||
|
||||
/* Stubs for glamor */
|
||||
|
||||
Reference in New Issue
Block a user