draw: fix base instance handling in llvm path
authorRoland Scheidegger <sroland@vmware.com>
Mon, 25 Aug 2014 20:05:16 +0000 (22:05 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 28 Aug 2014 01:03:23 +0000 (03:03 +0200)
commiteee9f6ae8aa058c70cc499fda7b521c5a5161338
tree04bd612dcddf4f04a99c2f334adca62f1880954c
parent17eabfeccfc7d8bbb42533bb7ef3d25b59ca51d7
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>
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/softpipe/sp_screen.c