nouveau: Frontbuffer needs to be marked as linear.
authorYounes Manton <younes.m@gmail.com>
Tue, 24 Mar 2009 22:55:37 +0000 (18:55 -0400)
committerYounes Manton <younes.m@gmail.com>
Tue, 24 Mar 2009 22:57:06 +0000 (18:57 -0400)
src/gallium/winsys/drm/nouveau/dri/nouveau_screen.c

index c4cbbc21248357d7c83beaa6a40af97570626d7e..0b45b1ff1f69cf15a5b0aa143042954c3a15e73b 100644 (file)
@@ -199,7 +199,8 @@ dri_surface_from_handle(struct pipe_screen *screen,
       return NULL;
 
    memset(&templat, 0, sizeof(templat));
-   templat.tex_usage |= PIPE_TEXTURE_USAGE_RENDER_TARGET;
+   templat.tex_usage = PIPE_TEXTURE_USAGE_PRIMARY |
+                       NOUVEAU_TEXTURE_USAGE_LINEAR;
    templat.target = PIPE_TEXTURE_2D;
    templat.last_level = 0;
    templat.depth[0] = 1;