Bug 43768

Summary: [i915g] src/gallium/drivers/i915/i915_fpc_translate.c:1101:i915_translate_token: Assertion `ifs->constant_flags[i] == 0x0' failed.
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Drivers/Gallium/i915gAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: critical    
Priority: medium CC: pavel.ondracka, ranselm
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2011-12-12 16:44:03 UTC
mesa: 23895cc006f3dbf96a502ddd15e291e071aff25a (master)

Run piglit glsl-fs-convolution-1 test on i915g.

$ ./bin/shader_runner tests/shaders/glsl-fs-convolution-1.shader_test -auto
src/gallium/drivers/i915/i915_fpc_translate.c:1101:i915_translate_token: Assertion `ifs->constant_flags[i] == 0x0' failed.
Trace/breakpoint trap (core dumped)

(gdb) bt
#0  0x010eee18 in _debug_assert_fail (expr=0x1a68743 "ifs->constant_flags[i] == 0x0", file=0x1a683d8 "src/gallium/drivers/i915/i915_fpc_translate.c", 
    line=1101, function=0x1a6884b "i915_translate_token") at src/gallium/auxiliary/util/u_debug.c:278
#1  0x0109e0ad in i915_translate_token (p=0x98611f8, token=0x98a23f8, fs=0x98602f8) at src/gallium/drivers/i915/i915_fpc_translate.c:1101
#2  0x0109e372 in i915_translate_instructions (p=0x98611f8, tokens=0x9867890, fs=0x98602f8) at src/gallium/drivers/i915/i915_fpc_translate.c:1178
#3  0x0109e90c in i915_translate_fragment_program (i915=0x96ce8c0, fs=0x98602f8) at src/gallium/drivers/i915/i915_fpc_translate.c:1340
#4  0x010967d6 in i915_create_fs_state (pipe=0x96ce8c0, templ=0x98d977c) at src/gallium/drivers/i915/i915_state.c:577
#5  0x010c0910 in aaline_create_fs_state (pipe=0x96ce8c0, fs=0x98d977c) at src/gallium/auxiliary/draw/draw_pipe_aaline.c:856
#6  0x010c2a2f in aapoint_create_fs_state (pipe=0x96ce8c0, fs=0x98d977c) at src/gallium/auxiliary/draw/draw_pipe_aapoint.c:839
#7  0x0191d608 in st_translate_fragment_program (st=0x97bc488, stfp=0x98c9420, key=0xbfa60ca0) at src/mesa/state_tracker/st_program.c:710
#8  0x0191d729 in st_get_fp_variant (st=0x97bc488, stfp=0x98c9420, key=0xbfa60ca0) at src/mesa/state_tracker/st_program.c:747
#9  0x019c913d in update_fp (st=0x97bc488) at src/mesa/state_tracker/st_atom_shader.c:86
#10 0x019c543b in st_validate_state (st=0x97bc488) at src/mesa/state_tracker/st_atom.c:177
#11 0x01918144 in st_draw_vbo (ctx=0x97663d8, arrays=0x97bf8a0, prims=0xbfa60dec, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=3)
    at src/mesa/state_tracker/st_draw.c:979
#12 0x019ab5ff in vbo_draw_arrays (ctx=0x97663d8, mode=7, start=0, count=4, numInstances=1) at src/mesa/vbo/vbo_exec_array.c:620
#13 0x019ab757 in vbo_exec_DrawArrays (mode=7, start=0, count=4) at src/mesa/vbo/vbo_exec_array.c:651
#14 0x0809cbf6 in piglit_draw_rect (x=-1, y=-1, w=2, h=2) at piglit/tests/util/piglit-util-gl.c:647
#15 0x0807289d in piglit_display () at piglit/tests/shaders/shader_runner.c:1095
#16 0x08074147 in display () at piglit/tests/util/piglit-framework.c:56
#17 0x0062ec1e in fghRedrawWindow (window=0x96c6a28) at freeglut_main.c:210
#18 fghcbDisplayWindow (window=0x96c6a28, enumerator=0xbfa61118) at freeglut_main.c:227
#19 0x00632590 in fgEnumWindows (enumCallback=0x62eb20 <fghcbDisplayWindow>, enumerator=0xbfa61118) at freeglut_structure.c:394
#20 0x0062f02e in fghDisplayAll () at freeglut_main.c:249
#21 glutMainLoopEvent () at freeglut_main.c:1450
#22 0x0062f935 in glutMainLoop () at freeglut_main.c:1498
#23 0x0807487e in main (argc=2, argv=0xbfa61384) at piglit/tests/util/piglit-framework.c:294
(gdb) frame 1
#1  0x0109e0ad in i915_translate_token (p=0x98611f8, token=0x98a23f8, fs=0x98602f8) at src/gallium/drivers/i915/i915_fpc_translate.c:1101
1101	            assert(ifs->constant_flags[i] == 0x0);
(gdb) info locals
i = 32
ifs = 0x98602f8
__FUNCTION__ = "i915_translate_token"
(gdb) print ifs->constant_flags[i]
$1 = 255 '\377'
Comment 1 Pavel Ondračka 2011-12-31 05:49:52 UTC
*** Bug 44346 has been marked as a duplicate of this bug. ***
Comment 2 Julien Nabet 2012-03-31 02:55:16 UTC
*** Bug 47569 has been marked as a duplicate of this bug. ***
Comment 3 GitLab Migration User 2019-09-18 19:30:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/655.

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.