aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xorg
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2009-11-06 04:23:33 -0500
committerZack Rusin <[email protected]>2009-11-06 22:08:21 -0500
commit3f7df23ff50fc7cd86db9a27c11cca9c10bd63eb (patch)
tree6dd2e504973216c0afde0d90dc106954995052ef /src/gallium/state_trackers/xorg
parent6c44d399bd23e734f2302897ee74e4869ff33816 (diff)
st/xorg: use quads instead of triangle fans
easier to split, accumulate and batch those
Diffstat (limited to 'src/gallium/state_trackers/xorg')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_renderer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_renderer.c b/src/gallium/state_trackers/xorg/xorg_renderer.c
index c11f250e693..42fd7304a2d 100644
--- a/src/gallium/state_trackers/xorg/xorg_renderer.c
+++ b/src/gallium/state_trackers/xorg/xorg_renderer.c
@@ -629,7 +629,7 @@ static void renderer_copy_texture(struct xorg_renderer *r,
if (buf) {
util_draw_vertex_buffer(r->pipe, buf, 0,
- PIPE_PRIM_TRIANGLE_FAN,
+ PIPE_PRIM_QUADS,
4, /* verts */
2); /* attribs/vert */
@@ -812,7 +812,7 @@ void renderer_draw_solid_rect(struct xorg_renderer *r,
if (buf) {
util_draw_vertex_buffer(pipe, buf, 0,
- PIPE_PRIM_TRIANGLE_FAN,
+ PIPE_PRIM_QUADS,
4, /* verts */
2); /* attribs/vert */
@@ -873,7 +873,7 @@ void renderer_draw_textures(struct xorg_renderer *r,
num_attribs += num_textures;
util_draw_vertex_buffer(pipe, buf, 0,
- PIPE_PRIM_TRIANGLE_FAN,
+ PIPE_PRIM_QUADS,
4, /* verts */
num_attribs); /* attribs/vert */
@@ -898,7 +898,7 @@ void renderer_draw_yuv(struct xorg_renderer *r,
const int num_attribs = 2; /*pos + tex coord*/
util_draw_vertex_buffer(pipe, buf, 0,
- PIPE_PRIM_TRIANGLE_FAN,
+ PIPE_PRIM_QUADS,
4, /* verts */
num_attribs); /* attribs/vert */