nouveau: Grab correct surface from temp texture for transfers.
authorYounes Manton <younes.m@gmail.com>
Mon, 2 Mar 2009 17:57:56 +0000 (12:57 -0500)
committerYounes Manton <younes.m@gmail.com>
Mon, 2 Mar 2009 18:05:06 +0000 (13:05 -0500)
src/gallium/drivers/nv04/nv04_transfer.c
src/gallium/drivers/nv10/nv10_transfer.c
src/gallium/drivers/nv20/nv20_transfer.c
src/gallium/drivers/nv30/nv30_transfer.c
src/gallium/drivers/nv40/nv40_transfer.c

index 314d2045f7680ecde39ee9af35e0bfe6cb4067c6..573b043f5b6c46ca90eb1d7054f66866b661b8bb 100644 (file)
@@ -87,7 +87,7 @@ nv04_transfer_new(struct pipe_screen *pscreen, struct pipe_texture *pt,
        {
                tx->direct = true;
                tx->surface = pscreen->get_tex_surface(pscreen, pt,
-                                                      face, level, zslice,
+                                                      0, 0, 0,
                                                       nv04_usage_tx_to_buf(usage));
                return &tx->base;
        }
index 967e2cc20ce4cdfc07b8b0078499e861c2f80c75..daec37ab28ef02820a3f8a5ca95455fc5e688cdd 100644 (file)
@@ -87,7 +87,7 @@ nv10_transfer_new(struct pipe_screen *pscreen, struct pipe_texture *pt,
        {
                tx->direct = true;
                tx->surface = pscreen->get_tex_surface(pscreen, pt,
-                                                      face, level, zslice,
+                                                      0, 0, 0,
                                                       nv10_usage_tx_to_buf(usage));
                return &tx->base;
        }
index 19de09486d3f22aee79f4f6e582d2d4b201986a2..1631637067dfb256f75a0e4c7fead0448a1fe56f 100644 (file)
@@ -87,7 +87,7 @@ nv20_transfer_new(struct pipe_screen *pscreen, struct pipe_texture *pt,
        {
                tx->direct = true;
                tx->surface = pscreen->get_tex_surface(pscreen, pt,
-                                                      face, level, zslice,
+                                                      0, 0, 0,
                                                       nv20_usage_tx_to_buf(usage));
                return &tx->base;
        }
index df4dc4b1f68ede0bbc12503daaf4038bd77a8c6c..6367374a61612c2fa54774ed86dd2c052b05cf7e 100644 (file)
@@ -104,7 +104,7 @@ nv30_transfer_new(struct pipe_screen *pscreen, struct pipe_texture *pt,
        }
 
        tx->surface = pscreen->get_tex_surface(pscreen, tx_tex,
-                                              face, level, zslice,
+                                              0, 0, 0,
                                               nv30_usage_tx_to_buf(usage));
 
        pipe_texture_reference(&tx_tex, NULL);
index b090f2238e45d7b1d742d69a49be9694ac9b5f6a..f762f32f0c352c4dcb2771e8402c27735f4c2eff 100644 (file)
@@ -104,7 +104,7 @@ nv40_transfer_new(struct pipe_screen *pscreen, struct pipe_texture *pt,
        }
 
        tx->surface = pscreen->get_tex_surface(pscreen, tx_tex,
-                                              face, level, zslice,
+                                              0, 0, 0,
                                               nv40_usage_tx_to_buf(usage));
 
        pipe_texture_reference(&tx_tex, NULL);