aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python/p_device.i
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-04-12 15:04:16 +0900
committerJosé Fonseca <[email protected]>2010-04-12 15:32:23 +0900
commitc48f21ea7cb9634c1865514f069b8c0993cb5daf (patch)
tree4ae3bf8054620210d1e1501ad690f6b395dea73f /src/gallium/state_trackers/python/p_device.i
parentb77583203e44a8937577bf3b813dc66cea1a2005 (diff)
st/python: Fix regressions.
Diffstat (limited to 'src/gallium/state_trackers/python/p_device.i')
-rw-r--r--src/gallium/state_trackers/python/p_device.i17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/gallium/state_trackers/python/p_device.i b/src/gallium/state_trackers/python/p_device.i
index 18d5efcffb1..959c13f54d9 100644
--- a/src/gallium/state_trackers/python/p_device.i
+++ b/src/gallium/state_trackers/python/p_device.i
@@ -81,20 +81,20 @@ struct st_device {
/**
* Check if the given pipe_format is supported as a texture or
* drawing surface.
- * \param tex_usage bitmask of PIPE_BIND flags
+ * \param bind bitmask of PIPE_BIND flags
*/
int is_format_supported( enum pipe_format format,
enum pipe_texture_target target,
- unsigned tex_usage,
+ unsigned bind,
unsigned geom_flags ) {
/* We can't really display surfaces with the python statetracker so mask
* out that usage */
- tex_usage &= ~PIPE_BIND_DISPLAY_TARGET;
+ bind &= ~PIPE_BIND_DISPLAY_TARGET;
return $self->screen->is_format_supported( $self->screen,
format,
target,
- tex_usage,
+ bind,
geom_flags );
}
@@ -104,20 +104,20 @@ struct st_device {
}
struct pipe_resource *
- texture_create(
+ resource_create(
enum pipe_format format,
unsigned width,
unsigned height,
unsigned depth = 1,
unsigned last_level = 0,
enum pipe_texture_target target = PIPE_TEXTURE_2D,
- unsigned tex_usage = 0
+ unsigned bind = 0
) {
struct pipe_resource templat;
/* We can't really display surfaces with the python statetracker so mask
* out that usage */
- tex_usage &= ~PIPE_BIND_DISPLAY_TARGET;
+ bind &= ~PIPE_BIND_DISPLAY_TARGET;
memset(&templat, 0, sizeof(templat));
templat.format = format;
@@ -126,7 +126,7 @@ struct st_device {
templat.depth0 = depth;
templat.last_level = last_level;
templat.target = target;
- templat.bind = tex_usage;
+ templat.bind = bind;
return $self->screen->resource_create($self->screen, &templat);
}
@@ -135,5 +135,4 @@ struct st_device {
buffer_create(unsigned size, unsigned bind = 0) {
return pipe_buffer_create($self->screen, bind, size);
}
-
};