Bug 46597 - [NVA8/NV50 gallium] nv50_pc.h:351: nv_alloc_instruction: Assertion `pc->num_instructions < 2048' failed.
Summary: [NVA8/NV50 gallium] nv50_pc.h:351: nv_alloc_instruction: Assertion `pc->num_i...
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Nouveau Project
QA Contact:
Depends on:
Reported: 2012-02-24 18:56 UTC by Vinson Lee
Modified: 2013-10-01 16:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Note You need to log in before you can comment on or make changes to this bug.
Description Vinson Lee 2012-02-24 18:56:25 UTC
System environment: 
-- chipset: NVA8
-- system architecture: x86_64
-- xserver-xorg-video-nouveau: 1:0.0.16+git20110411+8378443-1
-- mesa: 6512bc4e67f0f2b53805d050e11f6a336b505f40
-- libdrm version: 2.4.26
-- kernel version: 3.0.0-16-generic
-- Linux distribution: Ubuntu 11.10 amd64

Run piglit test fp-indirections2.

$ ./bin/fp-indirections2 -auto
Max TEX instructions / TEX indirections: 16384 / 16384
fp-indirections2: nv50_pc.h:351: nv_alloc_instruction: Assertion `pc->num_instructions < 2048' failed.
Aborted (core dumped)

(gdb) bt
#0  0x00007fcb7b9723a5 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fcb7b975b0b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fcb7b96ad4d in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007fcb78ab30ce in nv_alloc_instruction (opcode=<optimized out>, pc=<optimized out>) at nv50_pc.h:351
#4  new_instruction (opcode=<optimized out>, pc=<optimized out>) at nv50_pc.h:362
#5  0x00007fcb78b26ee9 in nv_alloc_instruction (opcode=<optimized out>, pc=<optimized out>) at nv50_pc.h:351
#6  new_instruction (opcode=<optimized out>, pc=<optimized out>) at nv50_pc.h:362
#7  bld_insn_1 (opcode=<optimized out>, src0=0x1ecf5f8, bld=<optimized out>) at nv50_tgsi_to_nc.c:535
#8  0x00007fcb78b26f43 in emit_tex (bld=0x1e1f740, opcode=39, dst=0x7ffface85190, t_in=0x7ffface85060, argc=1, tic=0, tsc=0, 
    cube=0) at nv50_tgsi_to_nc.c:1378
#9  0x00007fcb78b2937d in bld_tex (bld=0x1e1f740, dst0=0x7ffface85190, insn=0x1e756a0) at nv50_tgsi_to_nc.c:1527
#10 0x00007fcb78b2bbf2 in bld_instruction (insn=0x1e756a0, bld=0x1e1f740) at nv50_tgsi_to_nc.c:1965
#11 nv50_tgsi_to_nc (pc=<optimized out>, ti=0x1dd8070) at nv50_tgsi_to_nc.c:2060
#12 0x00007fcb78b2164b in nv50_generate_code (ti=0x1dd8070) at nv50_pc.c:500
#13 0x00007fcb78b1f2f7 in nv50_program_translate (p=0x1dd7e50) at nv50_program.c:658
#14 0x00007fcb78b1f7a8 in nv50_program_validate (nv50=0x1b9d6d0, prog=0x1dd7e50) at nv50_shader_state.c:134
#15 0x00007fcb78b1fda3 in nv50_fragprog_validate (nv50=<optimized out>) at nv50_shader_state.c:194
#16 0x00007fcb78b1c253 in nv50_state_validate (nv50=0x1b9d6d0, mask=<optimized out>, words=8) at nv50_state_validate.c:393
#17 0x00007fcb78b1d285 in nv50_draw_vbo (pipe=0x1b9d6d0, info=<optimized out>) at nv50_vbo.c:660
#18 0x00007fcb78c2601b in st_draw_vbo (ctx=0x1c722e0, arrays=<optimized out>, prims=<optimized out>, nr_prims=1, ib=0x0, 
    index_bounds_valid=<optimized out>, min_index=0, max_index=3, tfb_vertcount=0x0) at state_tracker/st_draw.c:1113
#19 0x00007fcb78cf6ae7 in vbo_draw_arrays (ctx=0x1c722e0, mode=<optimized out>, start=0, count=<optimized out>, numInstances=1)
    at vbo/vbo_exec_array.c:635
#20 0x00000000004539bc in piglit_draw_rect_tex (x=0, y=0, w=32, h=32, tx=0, ty=0, tw=1, th=1)
    at piglit/tests/util/piglit-util-gl.c:817
#21 0x000000000042a2ba in test (dim=1, samples=1024) at piglit/tests/shaders/fp-indirections2.c:182
#22 0x000000000042a40d in piglit_display () at piglit/tests/shaders/fp-indirections2.c:214
#23 0x000000000042a52d in display () at piglit/tests/util/piglit-framework.c:56
#24 0x00007fcb7c033220 in ?? () from /usr/lib/libglut.so.3
#25 0x00007fcb7c036939 in fgEnumWindows () from /usr/lib/libglut.so.3
#26 0x00007fcb7c03365a in glutMainLoopEvent () from /usr/lib/libglut.so.3
#27 0x00007fcb7c033f65 in glutMainLoop () from /usr/lib/libglut.so.3
#28 0x000000000042ac9c in main (argc=1, argv=0x7ffface85c88) at piglit/tests/util/piglit-framework.c:304
(gdb) frame 3
#3  0x00007fcb78ab30ce in nv_alloc_instruction (opcode=<optimized out>, pc=<optimized out>) at nv50_pc.h:351
351	   assert(pc->num_instructions < NV_PC_MAX_INSTRUCTIONS);
Comment 1 Ilia Mirkin 2013-08-30 23:22:30 UTC
Looks like you were using a pre-9.0 mesa release. Can you check if this still happens with mesa-9.2 (and also updating your kernel wouldn't hurt, I think NVA8 support was much improved).
Comment 2 Ilia Mirkin 2013-10-01 16:23:41 UTC
No response to re-test request for over a month. Closing as invalid.

bug/show.html.tmpl processed on Feb 27, 2017 at 15:47:40.
(provided by the Example extension).