Bug 43683 - src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4575:st_translate_program: Assertion `0' failed.
Summary: src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4575:st_translate_program: Asserti...
Status: CLOSED DUPLICATE of bug 43682
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-10 00:12 UTC by Vinson Lee
Modified: 2011-12-10 14:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2011-12-10 00:12:09 UTC
mesa: 06f217d80f3d1318da4974bf7b31ea7edcf5eb0b (master)

Run piglit test fbo-copypix on llvmpipe.

$ ./bin/fbo-copypix -auto
src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4575:st_translate_program: Assertion `0' failed.
Trace/breakpoint trap (core dumped)


(gdb) bt
#0  0x00007f4134f1b975 in _debug_assert_fail (expr=0x7f41356a7d8b "0",
    file=0x7f41356a7ab8 "src/mesa/state_tracker/st_glsl_to_tgsi.cpp", line=4575,
    function=0x7f41356a8b00 "st_translate_program") at src/gallium/auxiliary/util/u_debug.c:278
#1  0x00007f4134e5f26a in st_translate_program (ctx=0x974d10, procType=0, ureg=0xb503e0, program=0xac94c0,
    proginfo=0xbd5240, numInputs=1, inputMapping=0x7fff83e79320,
    inputSemanticName=0x7fff83e794a0 "\005\224\347\203\377\177", inputSemanticIndex=0x7fff83e794c0 "",
    interpMode=0x7fff83e793a0, numOutputs=1, outputMapping=0x7fff83e79420,
    outputSemanticName=0x7fff83e794e0 "\001\225\347\203\n", outputSemanticIndex=0x7fff83e79500 "",
    passthrough_edgeflags=0 '\000') at src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4575
#2  0x00007f4134d7ed53 in st_translate_fragment_program (st=0x9ddb20, stfp=0xbd5240, key=0x7fff83e795a0)
    at src/mesa/state_tracker/st_program.c:653
#3  0x00007f4134d7ef73 in st_get_fp_variant (st=0x9ddb20, stfp=0xa57220, key=0x7fff83e795a0)
    at src/mesa/state_tracker/st_program.c:728
#4  0x00007f4134e4857d in get_color_fp_variant (st=0x9ddb20) at src/mesa/state_tracker/st_cb_drawpixels.c:1008
#5  0x00007f4134e4961d in st_CopyPixels (ctx=0x974d10, srcx=10, srcy=10, width=20, height=20, dstx=10, dsty=40,
    type=6144) at src/mesa/state_tracker/st_cb_drawpixels.c:1475
#6  0x00007f4134db1a16 in _mesa_CopyPixels (srcx=10, srcy=10, width=20, height=20, type=6144)
    at src/mesa/main/drawpix.c:226
#7  0x0000000000429ced in copy (srcX0=10, srcY0=10, srcX1=30, srcY1=30, dstX0=10, dstY0=40, dstX1=30, dstY1=60)
    at piglit/tests/fbo/fbo-copypix.c:129
#8  0x0000000000429eb2 in run_test () at piglit/tests/fbo/fbo-copypix.c:172
#9  0x000000000042a04c in piglit_display () at piglit/tests/fbo/fbo-copypix.c:203
#10 0x000000000042a70d in display () at piglit/tests/util/piglit-framework.c:56
#11 0x00007f413474e220 in fghRedrawWindow (window=0x8b8ad0) at freeglut_main.c:210
#12 fghcbDisplayWindow (window=0x8b8ad0, enumerator=0x7fff83e79900) at freeglut_main.c:227
#13 0x00007f4134751939 in fgEnumWindows (enumCallback=0x7f413474e120 <fghcbDisplayWindow>, enumerator=0x7fff83e79900)
    at freeglut_structure.c:394
#14 0x00007f413474e65a in fghDisplayAll () at freeglut_main.c:249
#15 glutMainLoopEvent () at freeglut_main.c:1450
#16 0x00007f413474ef65 in glutMainLoop () at freeglut_main.c:1498
#17 0x000000000042ae33 in main (argc=1, argv=0x7fff83e79c58)
    at piglit/tests/util/piglit-framework.c:294
(gdb) frame 1
#1  0x00007f4134e5f26a in st_translate_program (ctx=0x974d10, procType=0, ureg=0xb503e0, program=0xac94c0,
    proginfo=0xbd5240, numInputs=1, inputMapping=0x7fff83e79320,
    inputSemanticName=0x7fff83e794a0 "\005\224\347\203\377\177", inputSemanticIndex=0x7fff83e794c0 "",
    interpMode=0x7fff83e793a0, numOutputs=1, outputMapping=0x7fff83e79420,
    outputSemanticName=0x7fff83e794e0 "\001\225\347\203\n", outputSemanticIndex=0x7fff83e79500 "",
    passthrough_edgeflags=0 '\000') at src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4575
4575                assert(0);
(gdb) print program->shader_program->FragDepthLayout
$1 = 32577


06f217d80f3d1318da4974bf7b31ea7edcf5eb0b is the first bad commit
commit 06f217d80f3d1318da4974bf7b31ea7edcf5eb0b
Author: Marek Olšák <maraeo@gmail.com>
Date:   Fri Nov 18 15:45:03 2011 +0100

    gallium: implement ARB_conservative_depth

    This adds a new TGSI property to represent the GLSL layout qualifier in TGSI.
Comment 1 Dave Airlie 2011-12-10 09:34:52 UTC

*** This bug has been marked as a duplicate of bug 43682 ***
Comment 2 Vinson Lee 2011-12-10 14:05:52 UTC
mesa: 72cb103cf518c86d8d094380d9f8e16650a0060b (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.