[Mesa-dev] [PATCH] glsl: Refine the loop instruction counting.

Kenneth Graunke kenneth at whitecape.org
Tue Feb 28 15:00:23 PST 2012

On 02/28/2012 01:20 PM, Eric Anholt wrote:
> Before, we were only counting top-level instructions.  But if we have
> an assignment of a giant expression tree (such as the ones eventually
> generated by glsl-fs-unroll), we were counting the same as an
> assignment of a variable deref.
> glsl-fs-unroll-explosion now fails in a reasonable amount of time on
> i965 because the unrolling didn't go ridiculously far.
> ---
>   src/glsl/loop_unroll.cpp |   48 ++++++++++++++++++++++++++++++++++-----------
>   1 files changed, 36 insertions(+), 12 deletions(-)

Glad to see this fixed!

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

More information about the mesa-dev mailing list