summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/state_trackers/python/p_texture.i2
-rw-r--r--src/gallium/state_trackers/python/st_sample.c2
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 543a0cf33f..b97d188973 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 70ca16c23d..53a01891e1 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);