diff options
author | Zack Rusin <zackr@vmware.com> | 2013-07-23 01:29:30 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2013-07-25 02:02:59 -0400 |
commit | f19cb0e5f3be7f96b9ce68c15333370c2433d83d (patch) | |
tree | 37145d09bc94e4a0f022dcaf24279d95f2bf3fe0 /src/gallium/auxiliary/draw/draw_llvm.h | |
parent | 0e9ec8697353d7a35ea0a2edc63c0c7395f7129e (diff) | |
download | external_mesa3d-f19cb0e5f3be7f96b9ce68c15333370c2433d83d.zip external_mesa3d-f19cb0e5f3be7f96b9ce68c15333370c2433d83d.tar.gz external_mesa3d-f19cb0e5f3be7f96b9ce68c15333370c2433d83d.tar.bz2 |
draw: fix vertex id computation
vertex id has to be unaffected by the start index (i.e. when calling
draw arrays with start_index = 5, the first vertex_id has to still
be 0, not 5) and it has to be equal to the index when performing
indexed rendering (in which case it has to be unaffected by the
index bias). This fixes our behavior.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h index 347fde2..0675e3b 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.h +++ b/src/gallium/auxiliary/draw/draw_llvm.h @@ -263,7 +263,8 @@ typedef int unsigned count, unsigned stride, struct pipe_vertex_buffer *vertex_buffers, - unsigned instance_id); + unsigned instance_id, + unsigned vertex_id_offset); typedef int @@ -275,7 +276,8 @@ typedef int unsigned fetch_count, unsigned stride, struct pipe_vertex_buffer *vertex_buffers, - unsigned instance_id); + unsigned instance_id, + unsigned vertex_id_offset); typedef int |