[Glamor] [PATCH 25/34] glamor: Use quads instead of index buffer on desktop.
Alex Deucher
alexdeucher at gmail.com
Fri Feb 28 10:02:20 PST 2014
From: Eric Anholt <eric at anholt.net>
No difference (n=7)
Ported from Eric's xserver glamor tree.
Signed-off-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
src/glamor_fill.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/glamor_fill.c b/src/glamor_fill.c
index 356bddc..e65c909 100644
--- a/src/glamor_fill.c
+++ b/src/glamor_fill.c
@@ -235,7 +235,9 @@ _glamor_solid_boxes(PixmapPtr pixmap, BoxPtr box, int nbox, float *color)
}
glamor_put_vbo_space(screen);
- if (box_cnt == 1)
+ if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP)
+ dispatch->glDrawArrays(GL_QUADS, 0, box_cnt * 4);
+ else if (box_cnt == 1)
dispatch->glDrawArrays(GL_TRIANGLE_FAN, 0, box_cnt * 4);
else
#ifndef GLAMOR_GLES2
--
1.8.3.1
More information about the Glamor
mailing list