[Mesa-dev] [PATCH 6/9] draw: Properly limit vertex buffer fetches on draw arrays.
jfonseca at vmware.com
jfonseca at vmware.com
Tue Dec 4 06:13:49 PST 2012
From: José Fonseca <jfonseca at vmware.com>
We need to clamp vertex buffer fetch based on its size, not based on the
user specified max index hint.
This matches draw_pt_fetch_run() above.
NOTE: This is a candidate for the stable branches.
---
src/gallium/auxiliary/draw/draw_pt_fetch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch.c b/src/gallium/auxiliary/draw/draw_pt_fetch.c
index a6cc183..9fab7b6 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch.c
@@ -189,7 +189,7 @@ draw_pt_fetch_run_linear(struct pt_fetch *fetch,
((char *)draw->pt.user.vbuffer[i] +
draw->pt.vertex_buffer[i].buffer_offset),
draw->pt.vertex_buffer[i].stride,
- draw->pt.user.max_index + draw->pt.user.eltBias);
+ draw->pt.max_index);
}
translate->run( translate,
--
1.7.9.5
More information about the mesa-dev
mailing list