diff options
author | Keith Whitwell <keithw@vmware.com> | 2010-07-30 10:47:20 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2010-07-30 10:47:20 +0100 |
commit | f623d06c495c671f687d4a70c9281c64e5875232 (patch) | |
tree | 78542f13b24f1f0ba863e12e42440b26fa1b4349 /src/gallium/auxiliary/util/u_draw_quad.h | |
parent | 3fdd9fa556e9ba48244cb2b3966d3bfb0b84731b (diff) |
util: more helpers for old draw code
Diffstat (limited to 'src/gallium/auxiliary/util/u_draw_quad.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_draw_quad.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/gallium/auxiliary/util/u_draw_quad.h b/src/gallium/auxiliary/util/u_draw_quad.h index 1c9f752611..52994fe05c 100644 --- a/src/gallium/auxiliary/util/u_draw_quad.h +++ b/src/gallium/auxiliary/util/u_draw_quad.h @@ -39,31 +39,7 @@ extern "C" { struct pipe_resource; - -static INLINE void -util_draw_init_info(struct pipe_draw_info *info) -{ - memset(info, 0, sizeof(*info)); - info->instance_count = 1; - info->max_index = 0xffffffff; -} - - -static INLINE void -util_draw_arrays(struct pipe_context *pipe, uint mode, uint start, uint count) -{ - struct pipe_draw_info info; - - util_draw_init_info(&info); - info.mode = mode; - info.start = start; - info.count = count; - info.min_index = start; - info.max_index = start + count - 1; - - pipe->draw_vbo(pipe, &info); -} - +#include "util/u_draw.h" extern void util_draw_vertex_buffer(struct pipe_context *pipe, |