mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
egl: Blit to the bound frontbuffer with pipe
This commit is contained in:
parent
3b1b9f3cc7
commit
86e86e6cb6
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue