summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-21 16:32:00 -0600
committerBrian Paul <[email protected]>2011-09-21 16:32:00 -0600
commit559a0cd1fc3e8dab27075afa0064c1aebe003d9d (patch)
tree4eb1ad4a6a45d7d7149617963765ef45a1558f72 /src/gallium
parenta140c3e7837725bfa610c9f842a95201b661c773 (diff)
svga: call u_default_redefine_user_buffer() to fix failed assertion
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 <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_resource_buffer_upload.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_buffer_upload.c b/src/gallium/drivers/svga/svga_resource_buffer_upload.c
index a657a8bc224..36782d5d0d1 100644
--- a/src/gallium/drivers/svga/svga_resource_buffer_upload.c
+++ b/src/gallium/drivers/svga/svga_resource_buffer_upload.c
@@ -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);
}