summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_transfer.c
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2009-12-27 04:04:46 +0100
committerYounes Manton <[email protected]>2009-12-28 17:59:01 -0500
commit3a0c527bd03c0a4e637a1dcde11f0fb6129c07f6 (patch)
treee369b6ed0f86b545cecffff5be77920a49463f91 /src/gallium/drivers/nv30/nv30_transfer.c
parenta55e50b082ca068d35d695ff323603507e2b64aa (diff)
nouveau: Fix nv20-40 swizzled miptree RTs
I just coded a patch that does this and seems to work fine. It must be fixed since it breaks OpenGL (or the state tracker can be changed, but it seems better to do it in the driver). The patch also fixes NV20 and NV30 in the same way. They compile but are untested. I would guess that using the 3D engine is faster for the larger levels, but the 2D engine is faster for the smaller ones (and lacks this issue).
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_transfer.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_transfer.c b/src/gallium/drivers/nv30/nv30_transfer.c
index 2255a02caed..68047c47ec5 100644
--- a/src/gallium/drivers/nv30/nv30_transfer.c
+++ b/src/gallium/drivers/nv30/nv30_transfer.c
@@ -126,7 +126,7 @@ nv30_transfer_del(struct pipe_transfer *ptx)
dst = pscreen->get_tex_surface(pscreen, ptx->texture,
ptx->face, ptx->level, ptx->zslice,
- PIPE_BUFFER_USAGE_GPU_WRITE);
+ PIPE_BUFFER_USAGE_GPU_WRITE | NOUVEAU_BUFFER_USAGE_NO_RENDER);
/* TODO: Check if SIFM can deal with x,y,w,h when swizzling */
nvscreen->eng2d->copy(nvscreen->eng2d,