aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python/p_texture.i
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-09-04 09:33:10 +0900
committerJosé Fonseca <[email protected]>2008-09-04 09:38:23 +0900
commit78435d9142b4762cdf7193729bcd3148d990de3d (patch)
treeaa9770c6cb8ea0f5177e88484f0932c7b466a550 /src/gallium/state_trackers/python/p_texture.i
parenta3e39a4aa950ae0f9d4c3106bdf438c6529bd63c (diff)
python: Use pipe_buffer_* inlines as much as possible.
Diffstat (limited to 'src/gallium/state_trackers/python/p_texture.i')
-rw-r--r--src/gallium/state_trackers/python/p_texture.i6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/python/p_texture.i b/src/gallium/state_trackers/python/p_texture.i
index f23afea1677..33fb3743cce 100644
--- a/src/gallium/state_trackers/python/p_texture.i
+++ b/src/gallium/state_trackers/python/p_texture.i
@@ -180,7 +180,7 @@ struct st_buffer {
}
void write( const char *STRING, unsigned LENGTH, unsigned offset = 0) {
- struct pipe_winsys *winsys = $self->st_dev->screen->winsys;
+ struct pipe_screen *screen = $self->st_dev->screen;
char *map;
assert($self->buffer->refcount);
@@ -195,10 +195,10 @@ struct st_buffer {
return;
}
- map = winsys->buffer_map(winsys, $self->buffer, PIPE_BUFFER_USAGE_CPU_WRITE);
+ map = pipe_buffer_map(screen, $self->buffer, PIPE_BUFFER_USAGE_CPU_WRITE);
if(map) {
memcpy(map + offset, STRING, LENGTH);
- winsys->buffer_unmap(winsys, $self->buffer);
+ pipe_buffer_unmap(screen, $self->buffer);
}
}
};