mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
i965: Fix extending VB packets
Computation of the delta of this array from the last had a silly little bug and ignored any initial delta==0 causing grief in Nexuiz and friends. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
18dd7932c7
commit
9d31138f53
1 changed files with 2 additions and 2 deletions
|
|
@ -484,7 +484,7 @@ static void brw_prepare_vertices(struct brw_context *brw)
|
|||
}
|
||||
|
||||
/* can we simply extend the current vb? */
|
||||
if (0 && j == brw->vb.nr_current_buffers) {
|
||||
if (j == brw->vb.nr_current_buffers) {
|
||||
int delta = 0;
|
||||
for (i = 0; i < j; i++) {
|
||||
int d;
|
||||
|
|
@ -494,7 +494,7 @@ static void brw_prepare_vertices(struct brw_context *brw)
|
|||
break;
|
||||
|
||||
d = brw->vb.buffers[i].offset - brw->vb.current_buffers[i].offset;
|
||||
if (delta == 0)
|
||||
if (i == 0)
|
||||
delta = d / brw->vb.current_buffers[i].stride;
|
||||
if (delta * brw->vb.current_buffers[i].stride != d)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue