From c790c2c7598dea2d5a5b0bfbe47732956e1e89a6 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Tue, 19 Jun 2012 20:51:21 +0200 Subject: llvmpipe: Add vertex id support. Signed-off-by: Olivier Galibert Reviewed-by: Brian Paul --- src/gallium/drivers/llvmpipe/lp_state_fs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 2fa5d2ccc0d..03d15f6e2b0 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -245,6 +245,9 @@ generate_fs(struct gallivm_state *gallivm, unsigned chan; unsigned cbuf; unsigned depth_mode; + struct lp_bld_tgsi_system_values system_values; + + memset(&system_values, 0, sizeof(system_values)); if (key->depth.enabled || key->stencil[0].enabled || @@ -334,7 +337,7 @@ generate_fs(struct gallivm_state *gallivm, /* Build the actual shader */ lp_build_tgsi_soa(gallivm, tokens, type, &mask, - consts_ptr, NULL, /* instance id */ + consts_ptr, &system_values, interp->pos, interp->inputs, outputs, sampler, &shader->info.base); -- cgit v1.2.3