aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-10-20 00:11:48 +0200
committerMarek Olšák <[email protected]>2016-10-20 11:07:50 +0200
commitf19f71830bb342ff10019fca30dc5f1fd5755202 (patch)
treec0407bd4a55c23e0a432898a454d30dff81bfd25 /src/gallium/drivers/radeonsi
parent2db56434d4a275b5b24445dcaeaa024eca6fa7f9 (diff)
radeonsi: fix build of si_eliminate_const_vs_outputs on LLVM <= 3.8
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 3a842532ec3..25449ecaf94 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -6609,10 +6609,9 @@ static void si_eliminate_const_vs_outputs(struct si_shader_context *ctx)
if (LLVMGetInstructionOpcode(cur) != LLVMCall)
continue;
- LLVMValueRef callee = LLVMGetCalledValue(cur);
- LLVMValueKind kind = LLVMGetValueKind(callee);
+ LLVMValueRef callee = lp_get_called_value(cur);
- if (kind != LLVMFunctionValueKind)
+ if (!lp_is_function(callee))
continue;
const char *name = LLVMGetValueName(callee);