diff options
author | Nicolai Hähnle <[email protected]> | 2017-03-30 14:14:27 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-04-05 15:29:42 +0200 |
commit | 1ee57b16beec5a9128c75a3191eed051317e9836 (patch) | |
tree | fb572d214f0cc2961f80625e1a87ea65a550653a /src/gallium/drivers/radeonsi/si_shader.c | |
parent | ee2d93eb928fcdc43b2f15b32f90de497bd7bb2d (diff) |
radeonsi: bump RADEON_LLVM_MAX_SYSTEM_VALUES
ARB_shader_ballot introduces 7 new system values that can be used
in all shader stages.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 29d3dd4578d..600f2e31029 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1376,6 +1376,8 @@ static void declare_system_value(struct si_shader_context *ctx, struct gallivm_state *gallivm = &ctx->gallivm; LLVMValueRef value = 0; + assert(index < RADEON_LLVM_MAX_SYSTEM_VALUES); + switch (decl->Semantic.Name) { case TGSI_SEMANTIC_INSTANCEID: value = LLVMGetParam(ctx->main_fn, |