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.
This commit is contained in:
Marek Olšák 2011-09-25 18:44:36 +02:00
parent 0b3270b9b7
commit 4b5bf5a2a2

View 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;
}