From 86e86e6cb6efbd06289fb0cc263ab168d4f77112 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 29 Jan 2009 02:33:22 +0100 Subject: [PATCH] egl: Blit to the bound frontbuffer with pipe --- src/gallium/state_trackers/egl/egl_surface.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/state_trackers/egl/egl_surface.c b/src/gallium/state_trackers/egl/egl_surface.c index edc3a2f4e06..9e13f2fe585 100644 --- a/src/gallium/state_trackers/egl/egl_surface.c +++ b/src/gallium/state_trackers/egl/egl_surface.c @@ -280,6 +280,7 @@ drm_show_screen_surface_mesa(_EGLDriver *drv, EGLDisplay dpy, struct drm_device *dev = (struct drm_device *)drv; struct drm_surface *surf = lookup_drm_surface(surface); struct drm_screen *scrn = lookup_drm_screen(dpy, screen); + struct pipe_context *pipe; _EGLMode *mode = _eglLookupMode(dpy, m); int ret; unsigned int i, k; @@ -339,6 +340,13 @@ drm_show_screen_surface_mesa(_EGLDriver *drv, EGLDisplay dpy, if (ret) goto err_crtc; + pipe = drm_api_hocks.create_context(dev->screen); + pipe->surface_fill(pipe, scrn->surface, + 0, 0, + scrn->front.width, scrn->front.height, + 0xFF00FFFF); + pipe->destroy(pipe); + surf->screen = scrn; scrn->surf = surf; -- 2.30.2