projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12f25eb
)
i965: Fix VB packet reuse when offset for the new buffer isn't stride aligned.
author
Eric Anholt
<eric@anholt.net>
Tue, 22 Feb 2011 00:24:41 +0000
(16:24 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 22 Feb 2011 00:36:09 +0000
(16:36 -0800)
Fixes regression in scissor-stencil-clear and 5 other tests.
src/mesa/drivers/dri/i965/brw_draw_upload.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_draw_upload.c
b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index
17af046
..
b15c05a
100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/
src/mesa/drivers/dri/i965/brw_draw_upload.c
@@
-470,7
+470,7
@@
static void brw_prepare_vertices(struct brw_context *brw)
d = brw->vb.buffers[i].offset - brw->vb.current_buffers[i].offset;
if (delta == 0)
delta = d / brw->vb.current_buffers[i].stride;
-
else
if (delta * brw->vb.current_buffers[i].stride != d)
+ if (delta * brw->vb.current_buffers[i].stride != d)
break;
}