Bug 56934 - [GM45, bisected] Glean gl_FrontFacing var: Assertion `fp->Base.InputsRead < (1 << 12)' failed
Summary: [GM45, bisected] Glean gl_FrontFacing var: Assertion `fp->Base.InputsRead < (...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Ian Romanick
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2012-11-09 20:58 UTC by Pavel Ondračka
Modified: 2012-11-09 23:34 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Pavel Ondračka 2012-11-09 20:58:56 UTC
First bad commit:
0d61f879a1f2e6bb37368731a29d5267e1c25195
Author: Brian Paul <brianp@vmware.com>
Date:   Sun Nov 4 16:43:44 2012 -0700

    mesa: assert that key->fragprog_inputs_read value isn't too large
    
    fragprog_inputs_read is a 12-bit bitfield so check the assigned value.
    MSVC warns on the assignment.  Not easy to fix but let's do a sanity check.
    
    Reviewed-by: Jose Fonseca <jfonseca@vmware.com>


#0  0x0000003843035925 in raise () from /lib64/libc.so.6
#1  0x00000038430370d8 in abort () from /lib64/libc.so.6
#2  0x000000384302e6a2 in __assert_fail_base () from /lib64/libc.so.6
#3  0x000000384302e752 in __assert_fail () from /lib64/libc.so.6
#4  0x00007ffff6783901 in make_state_key (key=0x7fffffffd640, ctx=0x7e8290) at ../../../src/mesa/main/ffvertex_prog.c:164
#5  _mesa_get_fixed_func_vertex_program (ctx=ctx@entry=0x7e8290) at ../../../src/mesa/main/ffvertex_prog.c:1669
#6  0x00007ffff67d4152 in update_program (ctx=0x7e8290) at ../../../src/mesa/main/state.c:197
#7  _mesa_update_state_locked (ctx=ctx@entry=0x7e8290) at ../../../src/mesa/main/state.c:557
#8  0x00007ffff67d4341 in _mesa_update_state (ctx=0x7e8290) at ../../../src/mesa/main/state.c:588
#9  0x00007ffff6747cf0 in _mesa_Clear (mask=16640) at ../../../src/mesa/main/clear.c:178
#10 0x00007ffff7ae20d0 in stub_glClear (mask=16640) at /home/Paulie/piglit/tests/util/generated_dispatch.c:1696
#11 0x00000000004ce6c8 in GLEAN::GLSLTest::testProgram (this=0x7b1380, p=...) at /home/Paulie/piglit/tests/glean/tglsl1.cpp:4754
#12 0x00000000004cebf2 in GLEAN::GLSLTest::runOne (this=0x7b1380, r=..., w=...) at /home/Paulie/piglit/tests/glean/tglsl1.cpp:4843
#13 0x000000000049ec2d in GLEAN::BaseTest<GLEAN::MultiTestResult>::run (this=0x7b1380, environment=...)
    at /home/Paulie/piglit/tests/glean/tbase.h:337
#14 0x0000000000496615 in main (argc=10, argv=0x7fffffffe0c8) at /home/Paulie/piglit/tests/glean/main.cpp:141
Comment 1 Brian Paul 2012-11-09 23:34:34 UTC
I reverted the commit that added the assertion.
Should be fixed by 2951a9dd51910461ddc736d791584369b06e3d0b


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.