radeonsi: wire up TGSI_SEMANTIC_BASEINSTANCE
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 8 Aug 2016 13:33:14 +0000 (15:33 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 9 Aug 2016 13:56:03 +0000 (15:56 +0200)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 64c367eb367f29a1c09cb37c73b0637163162d98..2c00f56d7b0f5a283830edc1e88fff2fe2b0115f 100644 (file)
@@ -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);