aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-02-28 01:54:36 +0100
committerChristian König <[email protected]>2011-02-28 02:19:39 +0100
commitbce4f9ac395986ee0acae2702ed73448333d81b8 (patch)
tree4b62e85bee6d4a483dc63066eff4f2a06d5e9cb4 /src/gallium/auxiliary/util
parent0a17444133e74de7bc5d04d8ffc8f29b89f0cf58 (diff)
st/mesa & v_bug_mgr: two small instanced drawing fixes
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf_mgr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c
index dec8dd717e8..3cf8ee0831d 100644
--- a/src/gallium/auxiliary/util/u_vbuf_mgr.c
+++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c
@@ -531,7 +531,10 @@ static void u_vbuf_upload_buffers(struct u_vbuf_mgr_priv *mgr,
unsigned first, size;
boolean flushed;
- if (vb->stride) {
+ if (mgr->ve->ve[i].instance_divisor) {
+ first = 0;
+ size = vb->buffer->width0;
+ } else if (vb->stride) {
first = vb->stride * min_index;
size = vb->stride * count;
} else {