diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-08-08 15:33:14 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-08-08 17:53:54 +0200 |
commit | 571086b2c64550ecf1e3a7f2e0bb3510d998b859 (patch) | |
tree | 0e328f6259f7ec8d98f9487681cb13971a551319 | |
parent | 3343ebbc20b808decc3d7c891e287bf1b3351319 (diff) |
radeonsi: wire up TGSI_SEMANTIC_BASEINSTANCE
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 64c367eb36..2c00f56d7b 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); |