diff options
author | marha <marha@users.sourceforge.net> | 2012-10-31 09:21:05 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-10-31 09:21:05 +0100 |
commit | 67c290de36ddc1caae94c0892157ac16b90e4f99 (patch) | |
tree | 2103f7ca65b9575500965cb2fc9e03c745e75879 /mesalib/src/gallium/auxiliary/util/u_inlines.h | |
parent | 7b3f315a5d8b90dcb0db5512ed91fa700027cb7a (diff) | |
download | vcxsrv-67c290de36ddc1caae94c0892157ac16b90e4f99.tar.gz vcxsrv-67c290de36ddc1caae94c0892157ac16b90e4f99.tar.bz2 vcxsrv-67c290de36ddc1caae94c0892157ac16b90e4f99.zip |
mesa git update 31 oct 2012
mesa: 183e122bdfe27f875c3c121964484dae9587c051
Diffstat (limited to 'mesalib/src/gallium/auxiliary/util/u_inlines.h')
-rw-r--r-- | mesalib/src/gallium/auxiliary/util/u_inlines.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/mesalib/src/gallium/auxiliary/util/u_inlines.h b/mesalib/src/gallium/auxiliary/util/u_inlines.h index 5c6e7eb32..3d68cf540 100644 --- a/mesalib/src/gallium/auxiliary/util/u_inlines.h +++ b/mesalib/src/gallium/auxiliary/util/u_inlines.h @@ -449,34 +449,6 @@ static INLINE boolean util_get_offset( } } -/** - * This function is used to copy an array of pipe_vertex_buffer structures, - * while properly referencing the pipe_vertex_buffer::buffer member. - * - * \sa util_copy_framebuffer_state - */ -static INLINE void util_copy_vertex_buffers(struct pipe_vertex_buffer *dst, - unsigned *dst_count, - const struct pipe_vertex_buffer *src, - unsigned src_count) -{ - unsigned i; - - /* Reference the buffers of 'src' in 'dst'. */ - for (i = 0; i < src_count; i++) { - pipe_resource_reference(&dst[i].buffer, src[i].buffer); - } - /* Unreference the rest of the buffers in 'dst'. */ - for (; i < *dst_count; i++) { - pipe_resource_reference(&dst[i].buffer, NULL); - } - - /* Update the size of 'dst' and copy over the other members - * of pipe_vertex_buffer. */ - *dst_count = src_count; - memcpy(dst, src, src_count * sizeof(struct pipe_vertex_buffer)); -} - static INLINE float util_get_min_point_size(const struct pipe_rasterizer_state *state) { |