mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 01:30:08 +01:00
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 <marek.olsak@amd.com>
This commit is contained in:
parent
ee2d93eb92
commit
1ee57b16be
2 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ struct ac_shader_binary;
|
|||
|
||||
#define RADEON_LLVM_INITIAL_CF_DEPTH 4
|
||||
|
||||
#define RADEON_LLVM_MAX_SYSTEM_VALUES 4
|
||||
#define RADEON_LLVM_MAX_SYSTEM_VALUES 11
|
||||
#define RADEON_LLVM_MAX_ADDRS 16
|
||||
|
||||
struct si_llvm_flow;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue