diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-12-21 22:47:21 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-12-21 22:55:40 +0000 |
commit | 03f212b0d85fed5dec9a855fb6d079e5fdb60ac9 (patch) | |
tree | 8f00e64e41fd34dd64c6d5ec6713b80f5b619312 /src/gallium/drivers/softpipe/sp_draw_arrays.c | |
parent | 09e785ee04c80c2bdf27245be7dafc79cce5b0ad (diff) | |
download | external_mesa3d-03f212b0d85fed5dec9a855fb6d079e5fdb60ac9.zip external_mesa3d-03f212b0d85fed5dec9a855fb6d079e5fdb60ac9.tar.gz external_mesa3d-03f212b0d85fed5dec9a855fb6d079e5fdb60ac9.tar.bz2 |
gallium: propogate draw retval changes into more drivers
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_draw_arrays.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_draw_arrays.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/gallium/drivers/softpipe/sp_draw_arrays.c b/src/gallium/drivers/softpipe/sp_draw_arrays.c index d404581..70a92fd 100644 --- a/src/gallium/drivers/softpipe/sp_draw_arrays.c +++ b/src/gallium/drivers/softpipe/sp_draw_arrays.c @@ -88,11 +88,11 @@ softpipe_unmap_constant_buffers(struct softpipe_context *sp) } -boolean +void softpipe_draw_arrays(struct pipe_context *pipe, unsigned mode, unsigned start, unsigned count) { - return softpipe_draw_elements(pipe, NULL, 0, mode, start, count); + softpipe_draw_elements(pipe, NULL, 0, mode, start, count); } @@ -101,7 +101,7 @@ softpipe_draw_arrays(struct pipe_context *pipe, unsigned mode, * Basically, map the vertex buffers (and drawing surfaces), then hand off * the drawing to the 'draw' module. */ -boolean +void softpipe_draw_range_elements(struct pipe_context *pipe, struct pipe_buffer *indexBuffer, unsigned indexSize, @@ -168,21 +168,19 @@ softpipe_draw_range_elements(struct pipe_context *pipe, softpipe_unmap_constant_buffers(sp); sp->dirty_render_cache = TRUE; - - return TRUE; } -boolean +void softpipe_draw_elements(struct pipe_context *pipe, struct pipe_buffer *indexBuffer, unsigned indexSize, unsigned mode, unsigned start, unsigned count) { - return softpipe_draw_range_elements( pipe, indexBuffer, - indexSize, - 0, 0xffffffff, - mode, start, count ); + softpipe_draw_range_elements( pipe, indexBuffer, + indexSize, + 0, 0xffffffff, + mode, start, count ); } |