Mesa (master): radeonsi: wire up TGSI_SEMANTIC_BASEINSTANCE
Nicolai Hähnle
nh at kemper.freedesktop.org
Tue Aug 9 13:57:15 UTC 2016
Module: Mesa
Branch: master
Commit: febb5dbf7243d93f6f0e44a6dc4c0fe72cf4250c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=febb5dbf7243d93f6f0e44a6dc4c0fe72cf4250c
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Mon Aug 8 15:33:14 2016 +0200
radeonsi: wire up TGSI_SEMANTIC_BASEINSTANCE
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/si_shader.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 64c367e..2c00f56 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1663,6 +1663,11 @@ static void declare_system_value(
SI_PARAM_BASE_VERTEX);
break;
+ case TGSI_SEMANTIC_BASEINSTANCE:
+ value = LLVMGetParam(radeon_bld->main_fn,
+ SI_PARAM_START_INSTANCE);
+ break;
+
case TGSI_SEMANTIC_INVOCATIONID:
if (ctx->type == PIPE_SHADER_TESS_CTRL)
value = unpack_param(ctx, SI_PARAM_REL_IDS, 8, 5);
More information about the mesa-commit
mailing list