projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2db5643
)
radeonsi: fix build of si_eliminate_const_vs_outputs on LLVM <= 3.8
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 19 Oct 2016 22:11:48 +0000
(
00:11
+0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 20 Oct 2016 09:07:50 +0000
(11:07 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_shader.c
b/src/gallium/drivers/radeonsi/si_shader.c
index 3a842532ec3b36dbe26f8f1e33b74711b1d1a9f1..25449ecaf9446e1b104cde6326ff3e6717089edd 100644
(file)
--- 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);