<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - r600g: 'invalid read' linking geometry shader"
href="https://bugs.freedesktop.org/show_bug.cgi?id=74717#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - r600g: 'invalid read' linking geometry shader"
href="https://bugs.freedesktop.org/show_bug.cgi?id=74717">bug 74717</a>
from <span class="vcard"><a class="email" href="mailto:edwin+mesa@etorok.net" title="Török Edwin <edwin+mesa@etorok.net>"> <span class="fn">Török Edwin</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=74717#c1">comment #1</a>)
<span class="quote">> I have replayed your trace and I get the following failing assertion. (mesa
> is compiled with --enable-debug)
>
> glretrace: ../../src/glsl/ir.cpp:170:
> ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*,
> unsigned int): Assertion `lhs_components ==
> this->rhs->type->vector_elements' failed.</span >
I can confirm that I get the same assertion when running the original program,
see backtrace below:
OpenGL Version Needed 3.2 ( 3.3 Found )
Compiling shader
gl-320/primitive-shading.vert...
Compiling shader
gl-320/primitive-shading.geom...
Compiling shader
gl-320/primitive-shading.frag...
gl-320-primitive-shading: ../../src/glsl/ir.cpp:170:
ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsigned
int): Assertion `lhs_components == this->rhs->type->vector_elements' failed.
Program received signal SIGABRT, Aborted.
0x000000382c4351d5 in __GI_raise (sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x000000382c4351d5 in __GI_raise (sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x000000382c438388 in __GI_abort () at abort.c:90
#2 0x000000382c42e252 in __assert_fail_base (fmt=0x382c56c080 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x7ffff70d6cb8 "lhs_components ==
this->rhs->type->vector_elements",
file=file@entry=0x7ffff70d6c57 "../../src/glsl/ir.cpp",
line=line@entry=170,
function=function@entry=0x7ffff70d7960
<ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsigned
int)::__PRETTY_FUNCTION__> "ir_assignment::ir_assignment(ir_dereference*,
ir_rvalue*, ir_rvalue*, unsigned int)") at assert.c:92
#3 0x000000382c42e302 in __GI___assert_fail (assertion=0x7ffff70d6cb8
"lhs_components == this->rhs->type->vector_elements",
file=0x7ffff70d6c57 "../../src/glsl/ir.cpp", line=170,
function=0x7ffff70d7960 <ir_assignment::ir_assignment(ir_dereference*,
ir_rvalue*, ir_rvalue*, unsigned int)::__PRETTY_FUNCTION__>
"ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsigned
int)") at assert.c:101
#4 0x00007ffff65950c1 in ir_assignment::ir_assignment (this=0xa4f8f0,
lhs=0xa4f250, rhs=0xa4f3a0, condition=0x0, write_mask=15)
at ../../src/glsl/ir.cpp:170
#5 0x00007ffff659b9b7 in ir_assignment::clone (this=0xa42880,
mem_ctx=0x79f4e0, ht=0xa4ef50) at ../../src/glsl/ir_clone.cpp:271
#6 0x00007ffff659bfcf in clone_ir_list (mem_ctx=0x79f4e0, out=0x7fffffffd8e0,
in=0xa41f60) at ../../src/glsl/ir_clone.cpp:432
#7 0x00007ffff65bffe5 in (anonymous
namespace)::loop_unroll_visitor::simple_unroll (this=0x7fffffffdba0,
ir=0xa41f40,
iterations=3) at ../../src/glsl/loop_unroll.cpp:112
#8 0x00007ffff65c03ae in (anonymous
namespace)::loop_unroll_visitor::visit_leave (this=0x7fffffffdba0, ir=0xa41f40)
at ../../src/glsl/loop_unroll.cpp:270
#9 0x00007ffff65a5633 in ir_loop::accept (this=0xa41f40, v=0x7fffffffdba0) at
../../src/glsl/ir_hv_accept.cpp:94
#10 0x00007ffff65a5505 in visit_list_elements (v=0x7fffffffdba0, l=0xa41b38,
statement_list=true)
at ../../src/glsl/ir_hv_accept.cpp:56
#11 0x00007ffff65a56f5 in ir_function_signature::accept (this=0xa41af0,
v=0x7fffffffdba0) at ../../src/glsl/ir_hv_accept.cpp:116
#12 0x00007ffff65a5505 in visit_list_elements (v=0x7fffffffdba0, l=0xa41a58,
statement_list=false)
at ../../src/glsl/ir_hv_accept.cpp:56
#13 0x00007ffff65a5789 in ir_function::accept (this=0xa41a30, v=0x7fffffffdba0)
at ../../src/glsl/ir_hv_accept.cpp:128
#14 0x00007ffff65a5505 in visit_list_elements (v=0x7fffffffdba0, l=0xa3d400,
statement_list=true)
at ../../src/glsl/ir_hv_accept.cpp:56
#15 0x00007ffff65a5426 in ir_hierarchical_visitor::run (this=0x7fffffffdba0,
instructions=0xa3d400)
at ../../src/glsl/ir_hierarchical_visitor.cpp:309
#16 0x00007ffff65c065d in unroll_loops (instructions=0xa3d400, ls=0xa4f3f0,
max_iterations=255)
at ../../src/glsl/loop_unroll.cpp:345
#17 0x00007ffff6591377 in do_common_optimization (ir=0xa3d400, linked=true,
uniform_locations_assigned=false,
max_unroll_iterations=255, options=0x7ffff53a6eec) at
../../src/glsl/glsl_parser_extras.cpp:1507
#18 0x00007ffff65bd46b in link_shaders (ctx=0x7ffff5385010, prog=0xa30aa0) at
../../src/glsl/linker.cpp:2172
#19 0x00007ffff64f37b7 in _mesa_glsl_link_shader (ctx=0x7ffff5385010,
prog=0xa30aa0) at program/ir_to_mesa.cpp:3087
#20 0x00007ffff63f97c0 in link_program (ctx=0x7ffff5385010, program=4) at
main/shaderapi.c:873
#21 0x00007ffff63fa592 in _mesa_LinkProgram (programObj=4) at
main/shaderapi.c:1333
#22 0x0000000000436ea4 in initProgram() ()
#23 0x00000000004372f1 in begin() ()
#24 0x0000000000438ecb in glf::run(int, char**, glm::detail::tvec2<int,
(glm::precision)0> const&, int, int, int) ()</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>