[Bug 93681] GLSL compilation can be very slow

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 12 16:29:24 PST 2016


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

--- Comment #3 from Matt Turner <mattst88 at gmail.com> ---
Created attachment 120995
  --> https://bugs.freedesktop.org/attachment.cgi?id=120995&action=edit
new.shader_test

(In reply to Matt Turner from comment #2)
> I read the shader a bit more and have decided that all indirect accesses
> could be statically determined to occur in limited ranges of the temps[]
> array.

With that knowledge in hand, I've modified slow.shader_test to limit indirect
accesses to small arrays -- by making

        vec4 temps_9_14[6];
        vec4 temps_15_20[6];
        vec4 temps_21_25[5];
        vec4 temps_26_30[5];

and modifying the accesses accordingly. That shader (attached with this
comment) compiles in the blink of an eye and is

712 instructions. 8 loops. 1146286 cycles. 0:0 spills:fills. 115 basic blocks.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160113/7b7a92da/attachment.html>


More information about the intel-3d-bugs mailing list