diff options
author | Jakob Bornecrantz <wallbraker@gmail.com> | 2009-01-30 01:57:07 +0100 |
---|---|---|
committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2009-01-30 01:57:07 +0100 |
commit | 0ac83a0ebb009eb8e293eafd0be2377856fab1da (patch) | |
tree | 99aaefb7d0ca22197290a1f00ba96d21d100e56d | |
parent | 83a2a89663335b6a9203bf5d359659bf83a16dac (diff) |
egl: Don't fill shown screen
-rw-r--r-- | src/gallium/state_trackers/egl/egl_surface.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gallium/state_trackers/egl/egl_surface.c b/src/gallium/state_trackers/egl/egl_surface.c index 9e13f2fe58..091d437d81 100644 --- a/src/gallium/state_trackers/egl/egl_surface.c +++ b/src/gallium/state_trackers/egl/egl_surface.c @@ -80,7 +80,6 @@ drm_create_texture(_EGLDriver *drv, unsigned stride = 1024; unsigned pitch = 0; unsigned size = 0; - void *ptr; /* ugly */ if (stride < w) @@ -98,14 +97,6 @@ drm_create_texture(_EGLDriver *drv, if (!buf) goto err_buf; -#if DEBUG - ptr = pipe_buffer_map(screen, buf, PIPE_BUFFER_USAGE_CPU_WRITE); - memset(ptr, 0xFF, size); - pipe_buffer_unmap(screen, buf); -#else - (void)ptr; -#endif - memset(&templat, 0, sizeof(templat)); templat.tex_usage |= PIPE_TEXTURE_USAGE_DISPLAY_TARGET; templat.tex_usage |= PIPE_TEXTURE_USAGE_RENDER_TARGET; @@ -340,13 +331,6 @@ 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; |