[Glamor] [PATCH 08/15] glamor_composite: Fix one bug when we have too more vertices.
zhigang.gong at linux.intel.com
zhigang.gong at linux.intel.com
Fri Jan 20 00:52:06 PST 2012
From: Zhigang Gong <zhigang.gong at linux.intel.com>
Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
src/glamor_render.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glamor_render.c b/src/glamor_render.c
index abc0f06..481438f 100644
--- a/src/glamor_render.c
+++ b/src/glamor_render.c
@@ -1073,7 +1073,7 @@ glamor_composite_with_shader(CARD8 op,
}
nrect_max = (vert_stride * nrect) > GLAMOR_COMPOSITE_VBO_VERT_CNT ?
- (GLAMOR_COMPOSITE_VBO_VERT_CNT / 6) : nrect;
+ (GLAMOR_COMPOSITE_VBO_VERT_CNT / vert_stride) : nrect;
while(nrect) {
int mrect, rect_processed;
--
1.7.4.4
More information about the Glamor
mailing list