svga: sort #includes
[mesa.git] / src / gallium / drivers / svga / svga_draw_arrays.c
index be0e7abe21b4187f5a94499cfcb6b3ecbc8f7ce5..0ae0777e90190620013ca3b9e09a185aad4b5207 100644 (file)
@@ -53,6 +53,7 @@ static enum pipe_error generate_indices( struct svga_hwtnl *hwtnl,
 
    dst = pipe_buffer_create( pipe->screen, 
                             PIPE_BIND_INDEX_BUFFER, 
+                            PIPE_USAGE_STATIC,
                             size );
    if (dst == NULL)
       goto fail;
@@ -271,7 +272,7 @@ svga_hwtnl_draw_arrays( struct svga_hwtnl *hwtnl,
                                           gen_size,
                                           gen_func,
                                           &gen_buf );
-      if (ret)
+      if (ret != PIPE_OK)
          goto done;
 
       ret = svga_hwtnl_simple_draw_range_elements( hwtnl,
@@ -284,7 +285,7 @@ svga_hwtnl_draw_arrays( struct svga_hwtnl *hwtnl,
                                                    0,
                                                    gen_nr );
 
-      if (ret)
+      if (ret != PIPE_OK)
          goto done;
 
    done: