diff options
author | Olivier Galibert <[email protected]> | 2012-06-19 20:51:21 +0200 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-06-19 14:40:44 -0600 |
commit | c790c2c7598dea2d5a5b0bfbe47732956e1e89a6 (patch) | |
tree | 76c69bbe525b74b870551c0863c10787583973de /src/gallium/drivers/llvmpipe | |
parent | 46931ecf480e1d231bb6c2236d91b5390f2465ac (diff) |
llvmpipe: Add vertex id support.
Signed-off-by: Olivier Galibert <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |