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:
parent
9c6fd931a6
commit
62e5365351
|
@ -1072,7 +1072,7 @@ glamor_composite_with_shader(CARD8 op,
|
||||||
}
|
}
|
||||||
|
|
||||||
nrect_max = (vert_stride * nrect) > GLAMOR_COMPOSITE_VBO_VERT_CNT ?
|
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) {
|
while(nrect) {
|
||||||
int mrect, rect_processed;
|
int mrect, rect_processed;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user