https://bugs.freedesktop.org/show_bug.cgi?id=83785
Priority: medium Bug ID: 83785 Assignee: mesa-dev@lists.freedesktop.org Summary: Shader branches excluded by uniform values are not optimized out Severity: major Classification: Unclassified OS: All Reporter: rcond...@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.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev