Mesa (master): u_vbuf_mgr: don't take per-instance attribs into acc. when computing max index
Marek Olšák
mareko at kemper.freedesktop.org
Mon Sep 26 13:25:24 UTC 2011
Module: Mesa
Branch: master
Commit: 4b5bf5a2a2b26a0f526ca8a85d61a6ef4ea0632f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b5bf5a2a2b26a0f526ca8a85d61a6ef4ea0632f
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Sep 25 18:44:36 2011 +0200
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 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 91102b3..b2070ab 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;
}
More information about the mesa-commit
mailing list