diff options
author | Paul Berry <[email protected]> | 2011-07-30 11:55:53 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-08-08 12:43:45 -0700 |
commit | 789ee6516bfca289e1948ff8f2c147b94286a0e0 (patch) | |
tree | 190cb9a1c2cd6662fffdefaf4d125cf8a832dbb1 /acinclude.m4 | |
parent | 0d81b0e18494a80c4326fbc98837842959675869 (diff) |
glsl: Constant-fold built-in functions before outputting IR
Rearranged the logic for converting the ast for a function call to
hir, so that we constant fold before emitting any IR. Previously we
would emit some IR, and then only later detect whether we could
constant fold. The unnecessary IR would usually get cleaned up by a
later optimization step, however in the case of a builtin function
being used to compute an array size, it was causing an assertion.
Fixes Piglit test array-size-constant-relational.vert.
Reviewed-by: Kenneth Graunke <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38625
Diffstat (limited to 'acinclude.m4')
0 files changed, 0 insertions, 0 deletions