summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_llvm.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2014-08-25 22:05:16 +0200
committerRoland Scheidegger <sroland@vmware.com>2014-08-28 03:03:23 +0200
commiteee9f6ae8aa058c70cc499fda7b521c5a5161338 (patch)
tree04bd612dcddf4f04a99c2f334adca62f1880954c /src/gallium/auxiliary/draw/draw_llvm.h
parent17eabfeccfc7d8bbb42533bb7ef3d25b59ca51d7 (diff)
downloadexternal_mesa3d-eee9f6ae8aa058c70cc499fda7b521c5a5161338.zip
external_mesa3d-eee9f6ae8aa058c70cc499fda7b521c5a5161338.tar.gz
external_mesa3d-eee9f6ae8aa058c70cc499fda7b521c5a5161338.tar.bz2
draw: fix base instance handling in llvm path
The base instance needs to be passed to the jited function, otherwise the instanced data fetch will only work with the same start instance when the jit function was created (and baking that into the key instead is not a viable option). This fixes piglit arb_base_instance-drawarrays (modulo some unrelated core/compat context trouble I get for the test). And fix the pipe cap bit in llvmpipe for it now that it actually works (it already worked for softpipe). 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.h6
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 2e465b2..ed97cf7 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.h
+++ b/src/gallium/auxiliary/draw/draw_llvm.h
@@ -274,7 +274,8 @@ typedef int
unsigned stride,
struct pipe_vertex_buffer *vertex_buffers,
unsigned instance_id,
- unsigned vertex_id_offset);
+ unsigned vertex_id_offset,
+ unsigned start_instance);
typedef int
@@ -287,7 +288,8 @@ typedef int
unsigned stride,
struct pipe_vertex_buffer *vertex_buffers,
unsigned instance_id,
- unsigned vertex_id_offset);
+ unsigned vertex_id_offset,
+ unsigned start_instance);
typedef int