swrast: simplify assertion to silence warning
[mesa.git] / src / gallium / state_trackers / python / p_device.i
index 959c13f54d9fae53de33c5ee6fe74defb2f4f582..61f6b3bb739f8496676fd9725958cb0dcae7599c 100644 (file)
@@ -85,17 +85,17 @@ struct st_device {
     */
    int is_format_supported( enum pipe_format format, 
                             enum pipe_texture_target target,
-                            unsigned bind, 
-                            unsigned geom_flags ) {
+                            unsigned sample_count,
+                            unsigned bind ) {
       /* 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, 
-                                                 geom_flags );
+      return $self->screen->is_format_supported( $self->screen,
+                                                 format,
+                                                 target,
+                                                 sample_count,
+                                                 bind );
    }
 
    struct st_context *
@@ -132,7 +132,7 @@ struct st_device {
    }
 
    struct pipe_resource *
-   buffer_create(unsigned size, unsigned bind = 0) {
-      return pipe_buffer_create($self->screen, bind, size);
+   buffer_create(unsigned size, unsigned usage, unsigned bind = 0) {
+      return pipe_buffer_create($self->screen, bind, usage, size);
    }
 };