summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-09-25 18:44:36 +0200
committerMarek Olšák <[email protected]>2011-09-26 15:25:04 +0200
commit4b5bf5a2a2b26a0f526ca8a85d61a6ef4ea0632f (patch)
treec2960535d5ed91d6982ab7d76ac2442a7da436f6
parent0b3270b9b72c2ca4fad172752045d8fa93c1ad6e (diff)
u_vbuf_mgr: don't take per-instance attribs into acc. when computing max index
NOTE: This is a candidate for the 7.11 branch.
-rw-r--r--src/gallium/auxiliary/util/u_vbuf_mgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c
index 91102b39c5e..b2070abd821 100644
--- a/src/gallium/auxiliary/util/u_vbuf_mgr.c
+++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c
@@ -575,7 +575,8 @@ static void u_vbuf_mgr_compute_max_index(struct u_vbuf_mgr_priv *mgr)
if (!vb->buffer ||
!vb->stride ||
- u_vbuf_resource(vb->buffer)->user_ptr) {
+ u_vbuf_resource(vb->buffer)->user_ptr ||
+ mgr->ve->ve[i].instance_divisor) {
continue;
}