From 7a7377a090dfbce65f9cd76ff3fabea38166b6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 25 Sep 2011 18:44:36 +0200 Subject: [PATCH] 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. --- src/gallium/auxiliary/util/u_vbuf_mgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c index a00b75cc7d2..fd4a7629f6e 100644 --- a/src/gallium/auxiliary/util/u_vbuf_mgr.c +++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c @@ -591,7 +591,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; }