mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
glsl: Don't inline function prototypes.
Currently, the standalone compiler tries to do function inlining before linking shaders (including linking against the built-in functions). This resulted in the built-in function _prototypes_ being inlined rather than the actual function definition. This is only known to fix a bug in the standalone compiler; most programs should be unaffected. Still, it seems like a good idea. NOTE: This is a candidate for the 7.9 branch.
This commit is contained in:
parent
2cc79acc1a
commit
e8a24c65bc
1 changed files with 2 additions and 0 deletions
|
|
@ -60,6 +60,8 @@ can_inline(ir_call *call)
|
|||
{
|
||||
ir_function_can_inline_visitor v;
|
||||
const ir_function_signature *callee = call->get_callee();
|
||||
if (!callee->is_defined)
|
||||
return false;
|
||||
|
||||
v.run((exec_list *) &callee->body);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue