Module: Mesa
Branch: master
Commit: 844868048f404ab941cc2e75358b77463ee67482
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=844868048f404ab941cc2e75358b77463ee67482

Author: José Fonseca <[email protected]>
Date:   Mon Mar 30 17:08:23 2009 +0100

python: Set correct transfer mode.

---

 src/gallium/state_trackers/python/p_texture.i |    2 +-
 src/gallium/state_trackers/python/st_sample.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/python/p_texture.i 
b/src/gallium/state_trackers/python/p_texture.i
index 543a0cf..b97d188 100644
--- a/src/gallium/state_trackers/python/p_texture.i
+++ b/src/gallium/state_trackers/python/p_texture.i
@@ -315,7 +315,7 @@ struct st_surface
                                           $self->face,
                                           $self->level,
                                           $self->zslice,
-                                          PIPE_TRANSFER_WRITE,
+                                          PIPE_TRANSFER_READ,
                                           x, y, w, h);
       if(!transfer) {
          FREE(rgba2);
diff --git a/src/gallium/state_trackers/python/st_sample.c 
b/src/gallium/state_trackers/python/st_sample.c
index 70ca16c..53a0189 100644
--- a/src/gallium/state_trackers/python/st_sample.c
+++ b/src/gallium/state_trackers/python/st_sample.c
@@ -539,7 +539,7 @@ st_sample_surface(struct st_surface *surface, float *rgba)
                                        surface->face,
                                        surface->level,
                                        surface->zslice,
-                                       PIPE_TRANSFER_READ,
+                                       PIPE_TRANSFER_WRITE,
                                        0, 0,
                                        width,
                                        height);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to