glamor: Drop bogus _X_UNLIKELY.
nbox > 4 is actually quite common for spans handling. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Markus Wick <markus@selfnet.de>
This commit is contained in:
parent
ad3dd80720
commit
20bcda9777
|
@ -200,7 +200,7 @@ _glamor_solid_boxes(PixmapPtr pixmap, BoxPtr box, int nbox, float *color)
|
||||||
|
|
||||||
pixmap_priv_get_dest_scale(pixmap_priv, &xscale, &yscale);
|
pixmap_priv_get_dest_scale(pixmap_priv, &xscale, &yscale);
|
||||||
|
|
||||||
if (_X_UNLIKELY(nbox * 4 * 2 > ARRAY_SIZE(vertices))) {
|
if (nbox * 4 * 2 > ARRAY_SIZE(vertices)) {
|
||||||
int allocated_box;
|
int allocated_box;
|
||||||
|
|
||||||
if (nbox * 6 > GLAMOR_COMPOSITE_VBO_VERT_CNT) {
|
if (nbox * 6 > GLAMOR_COMPOSITE_VBO_VERT_CNT) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user