From eee9f6ae8aa058c70cc499fda7b521c5a5161338 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Mon, 25 Aug 2014 22:05:16 +0200 Subject: 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 --- src/gallium/auxiliary/draw/draw_llvm.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/auxiliary/draw/draw_llvm.h') 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 -- cgit v1.1