svga: call u_default_redefine_user_buffer() to fix failed assertion
authorBrian Paul <brianp@vmware.com>
Wed, 21 Sep 2011 22:32:00 +0000 (16:32 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Sep 2011 22:32:00 +0000 (16:32 -0600)
This fixes a regression from a8cf4b6acf9ee996090cc0bb95fa3558b481108c

The problem occured when two successive glDrawArrays calls accessed
subsequent elements in user-space arrays.  The user-space array
from the first call wasn't being grown to accomodate the second
draw call's elements.

Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/drivers/svga/svga_resource_buffer_upload.c

index a657a8bc2240ed0c1e4832e9dc095f0c8268fea8..36782d5d0d195d1ab280ce1818f93bc589ef6b02 100644 (file)
@@ -658,9 +658,6 @@ svga_redefine_user_buffer(struct pipe_context *pipe,
    assert(!sbuf->handle);
    assert(!sbuf->hwbuf);
 
-   /*
-    * We always treat the contents of user-buffers as volatile,
-    * so no particular action needed here.
-    */
-
+   /* use the default action of simply resizing the user buffer's size */
+   u_default_redefine_user_buffer(pipe, resource, offset, size);
 }