<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - geometry shader with optional out variable segfaults"
href="https://bugs.freedesktop.org/show_bug.cgi?id=82585#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - geometry shader with optional out variable segfaults"
href="https://bugs.freedesktop.org/show_bug.cgi?id=82585">bug 82585</a>
from <span class="vcard"><a class="email" href="mailto:lemody@gmail.com" title="Tapani Pälli <lemody@gmail.com>"> <span class="fn">Tapani Pälli</span></a>
</span></b>
<pre>With Intel we get following backtrace .. I don't have good enough clue to tell
what's wrong but I can see that the reg and reg_offset values clearly go over
the size of attribute_map.
--- 8< -----
(gdb)
#0 0x00007ffff73683e2 in brw::vec4_visitor::lower_attributes_to_hw_regs
(this=0xffff, this@entry=0x7fffffffcdf0,
attribute_map=attribute_map@entry=0x7fffffffc770,
interleaved=false) at brw_vec4.cpp:1501
#1 0x00007ffff736f6a0 in brw::vec4_gs_visitor::setup_payload
(this=0x7fffffffcdf0) at brw_vec4_gs_visitor.cpp:134
#2 0x00007ffff73691ec in brw::vec4_visitor::run
(this=this@entry=0x7fffffffcdf0) at brw_vec4.cpp:1813
#3 0x00007ffff737077f in brw::brw_gs_emit (brw=brw@entry=0x7ffff6daf040,
prog=prog@entry=0xe0e070, c=c@entry=0x7fffffffda50,
mem_ctx=mem_ctx@entry=0xae59d0,
final_assembly_size=final_assembly_size@entry=0x7fffffffda4c) at
brw_vec4_gs_visitor.cpp:648
#4 0x00007ffff736e7b9 in do_gs_prog (brw=brw@entry=0x7ffff6daf040,
prog=prog@entry=0xe0e070, gp=gp@entry=0xdab920, key=key@entry=0x7fffffffdd30)
at brw_vec4_gs.c:264
#5 0x00007ffff736ebb8 in brw_gs_precompile (ctx=0x7ffff6daf040, prog=0xe0e070)
at brw_vec4_gs.c:401
#6 0x00007ffff73607ff in brw_shader_precompile (prog=0xe0e070,
ctx=0x7ffff6daf040) at brw_shader.cpp:76
#7 brw_link_shader (ctx=0x7ffff6daf040, shProg=0xe0e070) at brw_shader.cpp:269
#8 0x00007ffff7213a26 in _mesa_glsl_link_shader (ctx=0x7ffff6daf040,
prog=0xe0e070) at ../../src/mesa/program/ir_to_mesa.cpp:3038</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>