aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2009-03-24 18:55:37 -0400
committerYounes Manton <[email protected]>2009-03-24 18:57:06 -0400
commit578af516104bf0078cf93b1b9dd783e19e113177 (patch)
tree8b578ca79452510d51311a996d3535717b3d79e5 /src/gallium/winsys/drm
parentc4c4358e0858fcbc09f4bf35d93f593af5bcd9db (diff)
nouveau: Frontbuffer needs to be marked as linear.
Diffstat (limited to 'src/gallium/winsys/drm')
-rw-r--r--src/gallium/winsys/drm/nouveau/dri/nouveau_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/drm/nouveau/dri/nouveau_screen.c b/src/gallium/winsys/drm/nouveau/dri/nouveau_screen.c
index c4cbbc21248..0b45b1ff1f6 100644
--- a/src/gallium/winsys/drm/nouveau/dri/nouveau_screen.c
+++ b/src/gallium/winsys/drm/nouveau/dri/nouveau_screen.c
@@ -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;