From febb5dbf7243d93f6f0e44a6dc4c0fe72cf4250c Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Mon, 8 Aug 2016 15:33:14 +0200 Subject: radeonsi: wire up TGSI_SEMANTIC_BASEINSTANCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 64c367eb367..2c00f56d7b0 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); -- cgit v1.2.3