<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [llvmpipe] src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:2343:emit_fetch_texels: Assertion `0' failed."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79470">79470</a>
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>have-backtrace
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[llvmpipe] src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:2343:emit_fetch_texels: Assertion `0' failed.
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vlee@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: 83bba8f14603022c6c80bef95020e079d7cb73c0 (master 10.3.0-devel)

Run piglit glsl-resource-not-bound 2DMS on llvmpipe.

$ ./bin/glsl-resource-not-bound 2DMS -auto
Mesa warning: Unexpected target 0x9100 in store_texsubimage()
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:2343:emit_fetch_texels:
Assertion `0' failed.
Trace/breakpoint trap (core dumped)

(gdb) bt
#0  0x00007ff68349c3ad in _debug_assert_fail (expr=0x7ff683e5dda3 "0",
file=0x7ff683e5db38 "src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c", 
    line=2343, function=0x7ff683e5e6f0 <__func__.11835> "emit_fetch_texels") at
src/gallium/auxiliary/util/u_debug.c:277
#1  0x00007ff68352390a in emit_fetch_texels (bld=0x7fff23d798b0,
inst=0x2257dc0, texel=0x7fff23d79748, is_samplei=0 '\000')
    at src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:2343
#2  0x00007ff68352501f in txf_emit (action=0x7fff23d7a258,
bld_base=0x7fff23d798b0, emit_data=0x7fff23d796d0)
    at src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:2961
#3  0x00007ff68355e75e in lp_build_tgsi_inst_llvm (bld_base=0x7fff23d798b0,
inst=0x2257dc0) at src/gallium/auxiliary/gallivm/lp_bld_tgsi.c:265
#4  0x00007ff68355ef71 in lp_build_tgsi_llvm (bld_base=0x7fff23d798b0,
tokens=0x21dd710) at src/gallium/auxiliary/gallivm/lp_bld_tgsi.c:476
#5  0x00007ff683526bca in lp_build_tgsi_soa (gallivm=0x1e780f0,
tokens=0x21dd710, type=..., mask=0x7fff23d7f4d0, consts_ptr=0x2255228, 
    const_sizes_ptr=0x2255308, system_values=0x7fff23d7f4b0,
inputs=0x7fff23d810a0, outputs=0x7fff23d7f590, sampler=0x224e700,
info=0x21d0bb0, 
    gs_iface=0x0) at src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:3788
#6  0x00007ff6830cfd8d in generate_fs_loop (gallivm=0x1e780f0,
shader=0x21d0a90, key=0x21dc560, builder=0x21d6010, type=..., 
    context_ptr=0x224ddd0, num_loop=0x224e400, interp=0x7fff23d80370,
sampler=0x224e700, mask_store=0x224f3f8, out_color=0x7fff23d7fe70, 
    depth_ptr=0x224e050, depth_stride=0x224e190, facing=0x224dec0,
thread_data_ptr=0x224e0f0) at src/gallium/drivers/llvmpipe/lp_state_fs.c:417
#7  0x00007ff6830d61e9 in generate_fragment (lp=0x1dbdf50, shader=0x21d0a90,
variant=0x21dc560, partial_mask=1)
    at src/gallium/drivers/llvmpipe/lp_state_fs.c:2363
#8  0x00007ff6830d71dc in generate_variant (lp=0x1dbdf50, shader=0x21d0a90,
key=0x7fff23d81640) at src/gallium/drivers/llvmpipe/lp_state_fs.c:2615
#9  0x00007ff6830d881f in llvmpipe_update_fs (lp=0x1dbdf50) at
src/gallium/drivers/llvmpipe/lp_state_fs.c:3166
#10 0x00007ff6830ce609 in llvmpipe_update_derived (llvmpipe=0x1dbdf50) at
src/gallium/drivers/llvmpipe/lp_state_derived.c:186
#11 0x00007ff6830a8ca0 in llvmpipe_draw_vbo (pipe=0x1dbdf50,
info=0x7fff23d81960) at src/gallium/drivers/llvmpipe/lp_draw_arrays.c:64
#12 0x00007ff683445ea3 in cso_draw_vbo (cso=0x1e51a70, info=0x7fff23d81960) at
src/gallium/auxiliary/cso_cache/cso_context.c:1428
#13 0x00007ff683253e6b in st_draw_vbo (ctx=0x7ff6868c8010,
prims=0x7fff23d81a30, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001',
min_index=0, 
    max_index=3, tfb_vertcount=0x0, indirect=0x0) at
src/mesa/state_tracker/st_draw.c:276
#14 0x00007ff68332cc0b in vbo_draw_arrays (ctx=0x7ff6868c8010, mode=6, start=0,
count=4, numInstances=1, baseInstance=0)
    at src/mesa/vbo/vbo_exec_array.c:667
#15 0x00007ff68332d656 in vbo_exec_DrawArrays (mode=6, start=0, count=4) at
src/mesa/vbo/vbo_exec_array.c:819
#16 0x00007ff6863ed09e in stub_glDrawArrays (mode=6, first=0, count=4) at
piglit/tests/util/generated_dispatch.c:6274
#17 0x000000000040152d in draw_rect_core (x=-1, y=-1, w=1, h=1) at
piglit/tests/spec/gl-3.2/glsl-resource-not-bound.c:116
#18 0x000000000040155a in piglit_display () at
piglit/tests/spec/gl-3.2/glsl-resource-not-bound.c:126
#19 0x00007ff6863de7e2 in display () at
piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:60
#20 0x00007ff685b76244 in fghRedrawWindow (window=0x1dba490) at
freeglut_main.c:231
#21 fghcbDisplayWindow (window=0x1dba490, enumerator=0x7fff23d81bf0) at
freeglut_main.c:248
#22 0x00007ff685b79aa9 in fgEnumWindows
(enumCallback=enumCallback@entry=0x7ff685b761d0 <fghcbDisplayWindow>, 
    enumerator=enumerator@entry=0x7fff23d81bf0) at freeglut_structure.c:396
#23 0x00007ff685b767fd in fghDisplayAll () at freeglut_main.c:271
#24 glutMainLoopEvent () at freeglut_main.c:1523
#25 0x00007ff685b76ffd in glutMainLoop () at freeglut_main.c:1571
#26 0x00007ff6863deac4 in run_test (gl_fw=0x7ff6866cd380 <glut_fw>, argc=2,
argv=0x7fff23d81fc8)
    at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:154
#27 0x00007ff6863dc819 in piglit_gl_test_run (argc=2, argv=0x7fff23d81fc8,
config=0x7fff23d81e90)
    at piglit/tests/util/piglit-framework-gl.c:151
#28 0x0000000000401060 in main (argc=2, argv=0x7fff23d81fc8) at
piglit/tests/spec/gl-3.2/glsl-resource-not-bound.c:32
(gdb) frame 1
#1  0x00007ff68352390a in emit_fetch_texels (bld=0x7fff23d798b0,
inst=0x2257dc0, texel=0x7fff23d79748, is_samplei=0 '\000')
    at src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:2343
2343          assert(0);
(gdb) l
2338          break;
2339       case TGSI_TEXTURE_3D:
2340          dims = 3;
2341          break;
2342       default:
2343          assert(0);
2344          return;
2345       }
2346    
2347       /* always have lod except for buffers ? */
(gdb) print target
$1 = 14

src/gallium/include/pipe/p_shader_tokens.h
   534  #define TGSI_TEXTURE_BUFFER         0
   535  #define TGSI_TEXTURE_1D             1
   536  #define TGSI_TEXTURE_2D             2
   537  #define TGSI_TEXTURE_3D             3
   538  #define TGSI_TEXTURE_CUBE           4
   539  #define TGSI_TEXTURE_RECT           5
   540  #define TGSI_TEXTURE_SHADOW1D       6
   541  #define TGSI_TEXTURE_SHADOW2D       7
   542  #define TGSI_TEXTURE_SHADOWRECT     8
   543  #define TGSI_TEXTURE_1D_ARRAY       9
   544  #define TGSI_TEXTURE_2D_ARRAY       10
   545  #define TGSI_TEXTURE_SHADOW1D_ARRAY 11
   546  #define TGSI_TEXTURE_SHADOW2D_ARRAY 12
   547  #define TGSI_TEXTURE_SHADOWCUBE     13
   548  #define TGSI_TEXTURE_2D_MSAA        14
   549  #define TGSI_TEXTURE_2D_ARRAY_MSAA  15
   550  #define TGSI_TEXTURE_CUBE_ARRAY     16
   551  #define TGSI_TEXTURE_SHADOWCUBE_ARRAY 17
   552  #define TGSI_TEXTURE_UNKNOWN        18
   553  #define TGSI_TEXTURE_COUNT          19</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>