Bug 46005

Summary: [r300g, bisected] piglit glsl-vs-loop-redundant-condition fails
Product: Mesa Reporter: Pavel Ondračka <pavel.ondracka>
Component: Drivers/Gallium/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: bryancain3+fdo
Version: gitKeywords: regression
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Pavel Ondračka 2012-02-13 11:13:19 UTC
piglit glsl-vs-loop-redundant-condition fails with: 
r300 VP: Compiler error:
Failed to build loop info
Using a dummy shader instead.

8c31bc704826d46cad65c4d65b4b70de7144205a is the first bad commit
commit 8c31bc704826d46cad65c4d65b4b70de7144205a
Author: Bryan Cain <bryancain3@gmail.com>
Date:   Wed Aug 17 10:01:30 2011 -0500

    glsl_to_tgsi: implement ir_unop_logic_not using 1-x
    
    Since our logic values are 0.0 (false) and 1.0 (true), 1.0 - x accurately
    implements logical not.
    
    This is a port of commit 6ad08989d7c1 to glsl_to_tgsi.

GPU: RV530
Mesa: df1cd55ebf362948788c04d2fa7da55c80991605
Kernel: 3.2.3
Libdrm: 2.4.31
Comment 1 Tom Stellard 2012-02-13 18:51:03 UTC
This is a r300 compiler bug.  Flow control doesn't work very well for vertex shaders at the moment.  I have been slowly working on fixing this, but I'm not quite done yet.
Comment 2 Tom Stellard 2012-04-13 19:34:15 UTC
Fixed in git commit b2df031a959f36743527b9abc89913ce4f895de3

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.