diff options
author | Chia-I Wu <[email protected]> | 2010-07-29 16:04:28 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-07-29 16:21:10 +0800 |
commit | d4d62b6178c43cff9a0de522c4cf512109cb4b03 (patch) | |
tree | 2910fbe53a309f8cf6a1c1dcd30a4e9f847c365e /src/gallium/tests/graw/gs-test.c | |
parent | 92f9b05499de9f0e8eda11d1a75ba7955c9cc602 (diff) |
graw/tests: Use pipe_context::draw_vbo.
The other drawing variants such as draw_arrays or
draw_elements_instanced were removed.
This fixes fdo bug #29287.
Diffstat (limited to 'src/gallium/tests/graw/gs-test.c')
-rw-r--r-- | src/gallium/tests/graw/gs-test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/tests/graw/gs-test.c b/src/gallium/tests/graw/gs-test.c index 3087d446fca..62714900bd9 100644 --- a/src/gallium/tests/graw/gs-test.c +++ b/src/gallium/tests/graw/gs-test.c @@ -13,6 +13,7 @@ #include "util/u_debug.h" /* debug_dump_surface_bmp() */ #include "util/u_inlines.h" #include "util/u_memory.h" /* Offset() */ +#include "util/u_draw_quad.h" #include "util/u_box.h" static const char *filename = NULL; @@ -336,9 +337,9 @@ static void draw( void ) ctx->clear(ctx, PIPE_CLEAR_COLOR, clear_color, 0, 0); if (draw_strip) - ctx->draw_arrays(ctx, PIPE_PRIM_TRIANGLE_STRIP, 0, 4); + util_draw_arrays(ctx, PIPE_PRIM_TRIANGLE_STRIP, 0, 4); else - ctx->draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3); + util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3); ctx->flush(ctx, PIPE_FLUSH_RENDER_CACHE, NULL); |