summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorOlivier Galibert <[email protected]>2012-06-19 20:51:20 +0200
committerBrian Paul <[email protected]>2012-06-19 14:40:44 -0600
commit46931ecf480e1d231bb6c2236d91b5390f2465ac (patch)
tree981e1903926b2b79f2c696d8a2a80470229dc2aa /src/gallium/drivers/llvmpipe
parent4625a9b1adf7a30c56e2bbeb41573fbba4465851 (diff)
llvmpipe: Simplify and fix system variables fetch.
The system array values concept doesn't really because it expects the system values to be fixed per call, which is wrong for gl_VertexID and iffy for gl_SampleID. So this patch does two things: - kill the array, have emit_fetch_system_value directly pick the values it needs (only gl_InstanceID for now, as the previous code) - correctly handle the expected type in emit_fetch_system_value 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 7dd49691051..2fa5d2ccc0d 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -334,7 +334,7 @@ generate_fs(struct gallivm_state *gallivm,
/* Build the actual shader */
lp_build_tgsi_soa(gallivm, tokens, type, &mask,
- consts_ptr, NULL, /* sys values array */
+ consts_ptr, NULL, /* instance id */
interp->pos, interp->inputs,
outputs, sampler, &shader->info.base);