https://bugs.freedesktop.org/show_bug.cgi?id=70920

--- Comment #3 from Ian Romanick <i...@freedesktop.org> ---
The cause has been known since the tests were added in 2010:

commit 656cc65b2d3782c078d36342d0deec9886514520
Author: Luca Barbieri <l...@luca-barbieri.com>
Date:   Mon Sep 6 04:56:05 2010 +0200

    add GLSL inlining/unroll limit tests, currently failing

    The current GLSL compiler inlines everything indiscriminately,
    and unrolls all loops that have a small iteration count.

    This is a bad idea, because it can lead to exponential growth of
    the code, as these test cases illustrate.

    On a naive implementation (like current Mesa) these tests will
    attempt to allocate more than 2^64 bytes of RAM, ensuring failure.

    A smart implementation will instead generate actual calls/loops, and the
    test passes, since the branch protecting the functions/loops is not taken.

    Currently they aren't added to any profile since they obviously cause
    piglit to hang until memory is exhausted, possibly causing lots of
    swap thrashing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to