Bug 32644 - [i915g] src/gallium/drivers/i915/i915_fpc_translate.c:992:i915_translate_instructions: Assertion `0' failed.
Summary: [i915g] src/gallium/drivers/i915/i915_fpc_translate.c:992:i915_translate_inst...
Status: CLOSED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/i915g (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: Jakob Bornecrantz
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-24 17:12 UTC by Vinson Lee
Modified: 2010-12-26 21:10 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2010-12-24 17:12:04 UTC
mesa: 65e8f8111094a0acbdf5d0a400967a43b5da2996 (master)

chipset: 945GM (Intel GMA 950)
system architecture: i686
xserver-xorg-video-intel: 2:2.12.0-1ubuntu5.1
libdrm-intel1: 2.4.21-1ubuntu2.1
kernel version: 2.6.35-23-generic
Linux distribution: Ubuntu 10.10 i386

Many piglit tests have regressed and now trigger this assertion.
src/gallium/drivers/i915/i915_fpc_translate.c:992:i915_translate_instructions: Assertion `0' failed.

(gdb) bt
#0  0x0112ce53 in _debug_assert_fail (expr=0x19ac1da "0", file=0x19ac0e0 "src/gallium/drivers/i915/i915_fpc_translate.c", line=992, 
    function=0x19ac4bf "i915_translate_instructions") at src/gallium/auxiliary/util/u_debug.c:234
#1  0x010d20d4 in i915_translate_instructions (p=0x9a03608, tokens=0x9a035c8) at src/gallium/drivers/i915/i915_fpc_translate.c:992
#2  0x010d25e1 in i915_translate_fragment_program (i915=0x9966368, fs=0x9a02ec8) at src/gallium/drivers/i915/i915_fpc_translate.c:1178
#3  0x010c9e4f in i915_create_fs_state (pipe=0x9966368, templ=0x99fe218) at src/gallium/drivers/i915/i915_state.c:464
#4  0x010ee71b in aaline_create_fs_state (pipe=0x9966368, fs=0x99fe218) at src/gallium/auxiliary/draw/draw_pipe_aaline.c:840
#5  0x010f0898 in aapoint_create_fs_state (pipe=0x9966368, fs=0x99fe218) at src/gallium/auxiliary/draw/draw_pipe_aapoint.c:831
#6  0x01881d84 in st_translate_fragment_program (st=0x99d0050, stfp=0x99f9f80, key=0xbf94f640) at src/mesa/state_tracker/st_program.c:622
#7  0x01881e7b in st_get_fp_variant (st=0x99d0050, stfp=0x99f9f80, key=0xbf94f640) at src/mesa/state_tracker/st_program.c:653
#8  0x01915b94 in update_fp (st=0x99d0050) at src/mesa/state_tracker/st_atom_shader.c:86
#9  0x01911a58 in st_validate_state (st=0x99d0050) at src/mesa/state_tracker/st_atom.c:172
#10 0x0191d5ae in st_Clear (ctx=0x998e628, mask=2) at src/mesa/state_tracker/st_cb_clear.c:464
#11 0x018a74b4 in _mesa_Clear (mask=16384) at src/mesa/main/clear.c:241
#12 0x0804b5fa in piglit_display () at piglit/tests/fbo/fbo-1d.c:121
#13 0x0804d63f in display () at piglit/tests/util/piglit-framework.c:52
#14 0x00251820 in fghRedrawWindow (window=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece or DW_OP_bit_piece.
) at freeglut_main.c:210
#15 fghcbDisplayWindow (window=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece or DW_OP_bit_piece.
) at freeglut_main.c:227
#16 0x00255660 in fgEnumWindows (enumCallback=0x251790 <fghcbDisplayWindow>, enumerator=0xbf94f8a8) at freeglut_structure.c:394
#17 0x00251cdb in fghDisplayAll () at freeglut_main.c:249
#18 glutMainLoopEvent () at freeglut_main.c:1450
#19 0x00252605 in glutMainLoop () at freeglut_main.c:1498
#20 0x0804d7e8 in main (argc=1, argv=0xbf94fb34) at piglit/tests/util/piglit-framework.c:118
(gdb) frame 1
#1  0x010d20d4 in i915_translate_instructions (p=0x9a03608, tokens=0x9a035c8) at src/gallium/drivers/i915/i915_fpc_translate.c:992
992	         assert( 0 );
(gdb) print parse.FullToken.Token.Type
$2 = 3
(gdb) print TGSI_TOKEN_TYPE_PROPERTY
$3 = 3
Comment 1 Vinson Lee 2010-12-24 17:23:37 UTC
07498075b5de14955958da44a90eb7ee203218a1 is the first bad commit
commit 07498075b5de14955958da44a90eb7ee203218a1
Author: Dave Airlie <airlied@redhat.com>
Date:   Sat Dec 18 10:36:55 2010 +1000

    mesa/st: set the color write cbuf property for fragColor writes

:040000 040000 c9f116d1716b9538f29e59f6d6495865a23c0c55 d11a15b189a4517423d87baefc0c06e4ed0f91bd M	src
bisect run success
Comment 2 Jakob Bornecrantz 2010-12-26 15:53:03 UTC
Should be fixed with:

commit b7a73c72a68dc102ef8522eda8eadf583fd420a5
Author: Jakob Bornecrantz <wallbraker@gmail.com>
Date:   Sat Dec 25 14:01:09 2010 +0000

i915g: Ignore color0 writes all cbufs tgsi property
Comment 3 Vinson Lee 2010-12-26 21:10:41 UTC
mesa: 23aa3c552cc54a3242142b82916090f8b7b32e44 (master)

Verified fixed.


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.