glamor_composite: Fix one bug when we have too more vertices.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-01-20 10:04:21 +08:00 committed by Eric Anholt
parent 9c6fd931a6
commit 62e5365351

View File

@ -1072,7 +1072,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;