From 77d8464198abcf626b448a1295ad0e8efe6faf89 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Wed, 3 Dec 2008 11:46:33 +1100 Subject: nouveau/dri2: assume buffers passed from ddx are linear for now --- src/gallium/winsys/drm/nouveau/nouveau_winsys_pipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/drm/nouveau/nouveau_winsys_pipe.c b/src/gallium/winsys/drm/nouveau/nouveau_winsys_pipe.c index d3bf45929..912ebdd68 100644 --- a/src/gallium/winsys/drm/nouveau/nouveau_winsys_pipe.c +++ b/src/gallium/winsys/drm/nouveau/nouveau_winsys_pipe.c @@ -68,7 +68,8 @@ nouveau_surface_handle_ref(struct nouveau_context *nv, uint32_t handle, ps->winsys = nv->winsys; memset(&tmpl, 0, sizeof(tmpl)); - tmpl.tex_usage = PIPE_TEXTURE_USAGE_DISPLAY_TARGET; + tmpl.tex_usage = PIPE_TEXTURE_USAGE_DISPLAY_TARGET | + NOUVEAU_TEXTURE_USAGE_LINEAR; tmpl.target = PIPE_TEXTURE_2D; tmpl.width[0] = w; tmpl.height[0] = h; -- cgit v1.2.3