projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c91809e
)
ir_to_mesa: Fix up handling of void function returns.
author
Eric Anholt
<eric@anholt.net>
Tue, 27 Jul 2010 02:36:53 +0000
(19:36 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 27 Jul 2010 02:41:39 +0000
(19:41 -0700)
void functions have a type of glsl_type::void_type, not a null type.
src/mesa/program/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index 6eceddfb8183b6126cd2e9a6ef50bb12130fdfe6..d06b83261c642b6f5def5eeb25729fd762212cbe 100644
(file)
--- a/
src/mesa/program/ir_to_mesa.cpp
+++ b/
src/mesa/program/ir_to_mesa.cpp
@@
-1501,7
+1501,7
@@
ir_to_mesa_visitor::get_function_signature(ir_function_signature *sig)
break;
}
- if (
sig->return_type
) {
+ if (
!sig->return_type->is_void()
) {
entry->return_reg = get_temp(sig->return_type);
} else {
entry->return_reg = ir_to_mesa_undef;