From: Andreas Boll Date: Tue, 20 Nov 2012 20:04:25 +0000 (+0100) Subject: gallium/tests/trivial: updates for util_draw_vertex_buffer changes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1553f5ce83c6baee5e3896ff345baa43f888409d;p=mesa.git gallium/tests/trivial: updates for util_draw_vertex_buffer changes Fixes build error with configure option --enable-gallium-tests introduced in e73bf3b805de78299f1a652668ba4e6eab9bac94 Reviewed-by: Marek Olšák --- diff --git a/src/gallium/tests/trivial/quad-tex.c b/src/gallium/tests/trivial/quad-tex.c index 6162dd0ae72..f0c30d9d35b 100644 --- a/src/gallium/tests/trivial/quad-tex.c +++ b/src/gallium/tests/trivial/quad-tex.c @@ -329,7 +329,7 @@ static void draw(struct program *p) cso_set_vertex_elements(p->cso, 2, p->velem); util_draw_vertex_buffer(p->pipe, p->cso, - p->vbuf, 0, + p->vbuf, 0, 0, PIPE_PRIM_QUADS, 4, /* verts */ 2); /* attribs/vert */ diff --git a/src/gallium/tests/trivial/tri.c b/src/gallium/tests/trivial/tri.c index f3e1e944154..f9b4696abef 100644 --- a/src/gallium/tests/trivial/tri.c +++ b/src/gallium/tests/trivial/tri.c @@ -262,7 +262,7 @@ static void draw(struct program *p) cso_set_vertex_elements(p->cso, 2, p->velem); util_draw_vertex_buffer(p->pipe, p->cso, - p->vbuf, 0, + p->vbuf, 0, 0, PIPE_PRIM_TRIANGLES, 3, /* verts */ 2); /* attribs/vert */