summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2008-09-01 22:21:08 +0200
committerPatrice Mandin <pmandin@caramail.com>2008-09-02 17:56:10 +0200
commit72b90b7894afbcb39f72dc4d76cdea0678bf4bc3 (patch)
tree91c2bf8e55bb69a3b972fdc60008320938707eee /src/gallium
parent2ab5e69f16ed9e9b399ddd526f1370032d3d10a4 (diff)
Intialize swizzled_surface object
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/dri/nouveau/nv04_surface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/winsys/dri/nouveau/nv04_surface.c b/src/gallium/winsys/dri/nouveau/nv04_surface.c
index 0085b1c345..8fa3d106c8 100644
--- a/src/gallium/winsys/dri/nouveau/nv04_surface.c
+++ b/src/gallium/winsys/dri/nouveau/nv04_surface.c
@@ -276,6 +276,10 @@ nouveau_surface_channel_create_nv04(struct nouveau_channel_context *nvc)
}
BIND_RING (chan, nvc->NvSwzSurf, nvc->next_subchannel++);
+ BEGIN_RING(chan, nvc->NvSwzSurf, NV04_SWIZZLED_SURFACE_DMA_NOTIFY, 1);
+ OUT_RING (chan, nvc->sync_notifier->handle);
+ BEGIN_RING(chan, nvc->NvSwzSurf, NV04_SWIZZLED_SURFACE_DMA_IMAGE, 1);
+ OUT_RING (chan, nvc->channel->vram->handle);
if (chipset < 0x10) {
class = NV04_SCALED_IMAGE_FROM_MEMORY;