u_vbuf_mgr: don't take per-instance attribs into acc. when computing max index
authorMarek Olšák <maraeo@gmail.com>
Sun, 25 Sep 2011 16:44:36 +0000 (18:44 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 26 Sep 2011 13:25:04 +0000 (15:25 +0200)
NOTE: This is a candidate for the 7.11 branch.

src/gallium/auxiliary/util/u_vbuf_mgr.c

index 91102b39c5ef4ce9c88362cdf53dccc1a92900aa..b2070abd8210bc92526980e358e20c8763be7c7a 100644 (file)
@@ -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;
       }