Bug 42024

Summary: [bisected] piglit shaders/getuniform-01 fails
Product: Mesa Reporter: fangxun <xunx.fang>
Component: Drivers/DRI/i965Assignee: Ian Romanick <idr>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description fangxun 2011-10-19 19:39:04 UTC
System Environment:
--------------------------
Arch:           i386
Platform:       huronriver
Libdrm:         (master)2.4.26-12-gb317c96361f88a0a4ccb2faeff09b0476d142c68
Mesa:           (master)116b7bb5eac836953fbfbc627cabca4a7ee39937
Xserver:(master)xorg-server-1.11.0-176-gfae7ed62ad476114bd37b566202cf6b6546c0a1f
Xf86_video_intel:  (master)2.16.0-176-g0b83abfb2bc3f65447205048ae0af1a94fa9ef15
Kernel:    (drm-intel-next)64a742fac3a22f57303d8f1b7e347350a1c48254

Bug detailed description:
------------------------- 
It fails on pineview, ironlake and sandybridge. Following piglit cases also fail: 
shaders/getuniform-02
shaders/glsl-fs-struct-equal
shaders/glsl-fs-struct-notequal 
shaders/glsl-fs-uniform-array-4 
shaders/glsl-uniform-initializer-3
shaders/glsl-uniform-struct 

Bisect shows the first bad commit is b2572928a50ce42abc2733202d08f5a00733d707.
commit b2572928a50ce42abc2733202d08f5a00733d707
Author:     Ian Romanick <ian.d.romanick@intel.com>
AuthorDate: Fri Sep 9 18:27:36 2011 -0700
Commit:     Ian Romanick <ian.d.romanick@intel.com>
CommitDate: Tue Oct 18 17:26:38 2011 -0700

    ir_to_mesa: Generate gl_program_parameter list by walking the GLSL IR.

    Generate the program parameters list by walking the IR instead of by
    walking the list of linked uniforms.  This simplifies the code quite a
    bit, and is probably a bit more correct.  The list of linked uniforms
    should really only be used by the GL API to interact with the
    application.

    Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Cc: Bryan Cain <bryancain3@gmail.com>
    Cc: Eric Anholt <eric@anholt.net>


Reproduce steps:
----------------
1. start X
2. ./getuniform-01 -auto
Comment 1 Ian Romanick 2011-10-25 18:43:39 UTC

*** This bug has been marked as a duplicate of bug 41980 ***
Comment 2 fangxun 2011-10-28 02:49:55 UTC
It passes with mesa master commit 27de26073b0ab385e57504d77197a33bb7b6c28f.

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.