[Mesa-dev] [Bug 83785] New: Shader branches excluded by uniform values are not optimized out
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Sep 11 18:58:29 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=83785
Priority: medium
Bug ID: 83785
Assignee: mesa-dev at lists.freedesktop.org
Summary: Shader branches excluded by uniform values are not
optimized out
Severity: major
Classification: Unclassified
OS: All
Reporter: rconde01 at hotmail.com
Hardware: x86-64 (AMD64)
Status: NEW
Version: 10.2
Component: Mesa core
Product: Mesa
In investigating bug 83570 I noticed that for shader code such as
uniform bool u_debug;
if(!u_debug)
{
//do some stuff
}
else
{
//do some other stuff
}
both the if and else are executing. Seems like a pretty trivial
optimization...is there a reason it doesn't optimize out the excluded branch,
or is it just "yet to be done"?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140912/a7a6203e/attachment.html>
More information about the mesa-dev
mailing list