diff options
author | Roland Scheidegger <sroland@vmware.com> | 2010-05-17 21:32:41 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2010-05-17 21:32:41 +0200 |
commit | 8bd87b662f70070686fdfbea36f3660bd2586e32 (patch) | |
tree | 5409951f16a9d4d6e34db1be90434ff3d5a67591 /src/gallium/state_trackers/python/p_device.i | |
parent | eb2b668b3705f8091df716f342d72d32d9f31aea (diff) |
st/python: adapt to interface changes
compile tested only.
Should probably change the python surface_copy/fill functions
also into resource_copy/fill_region functions and adapt the code
using them.
Diffstat (limited to 'src/gallium/state_trackers/python/p_device.i')
-rw-r--r-- | src/gallium/state_trackers/python/p_device.i | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/python/p_device.i b/src/gallium/state_trackers/python/p_device.i index 959c13f54d..d55086fefd 100644 --- a/src/gallium/state_trackers/python/p_device.i +++ b/src/gallium/state_trackers/python/p_device.i @@ -85,16 +85,18 @@ struct st_device { */ int is_format_supported( enum pipe_format format, enum pipe_texture_target target, + unsigned sample_count, unsigned bind, unsigned geom_flags ) { /* We can't really display surfaces with the python statetracker so mask * out that usage */ bind &= ~PIPE_BIND_DISPLAY_TARGET; - return $self->screen->is_format_supported( $self->screen, - format, - target, - bind, + return $self->screen->is_format_supported( $self->screen, + format, + target, + sample_count, + bind, geom_flags ); } |