return wayland_drm_buffer_get_buffer(buffer);
}
-static EGLBoolean
+static boolean
wayland_drm_bufmgr_query_buffer(struct native_display *ndpy,
struct wl_resource *buffer_resource,
- EGLint attribute, EGLint *value)
+ int attribute, int *value)
{
struct wl_drm_buffer *buffer = wayland_drm_buffer_get(buffer_resource);
struct pipe_resource *resource;
if (!buffer)
- return EGL_FALSE;
+ return FALSE;
resource = buffer->driver_buffer;
switch (resource->format) {
case PIPE_FORMAT_B8G8R8A8_UNORM:
*value = EGL_TEXTURE_RGBA;
- return EGL_TRUE;
+ return TRUE;
case PIPE_FORMAT_B8G8R8X8_UNORM:
*value = EGL_TEXTURE_RGB;
- return EGL_TRUE;
+ return TRUE;
default:
- return EGL_FALSE;
+ return FALSE;
}
case EGL_WIDTH:
*value = buffer->width;
- return EGL_TRUE;
+ return TRUE;
case EGL_HEIGHT:
*value = buffer->height;
- return EGL_TRUE;
+ return TRUE;
default:
- return EGL_FALSE;
+ return FALSE;
}
}