Intialize swizzled_surface object
authorPatrice Mandin <pmandin@caramail.com>
Mon, 1 Sep 2008 20:21:08 +0000 (22:21 +0200)
committerPatrice Mandin <pmandin@caramail.com>
Tue, 2 Sep 2008 15:56:10 +0000 (17:56 +0200)
src/gallium/winsys/dri/nouveau/nv04_surface.c

index 0085b1c345d1def516aa1af57260c21dfffa7a88..8fa3d106c8c8392cfc014677e8b328909a6f03cf 100644 (file)
@@ -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;