[Bug 74717] r600g: 'invalid read' linking geometry shader

2014-02-10 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=74717

Michel D?nzer  changed:

   What|Removed |Added

   Assignee|dri-devel at lists.freedesktop |mesa-dev at 
lists.freedesktop.
   |.org|org
  Component|Drivers/Gallium/r600|Mesa core

--- Comment #7 from Michel D?nzer  ---
Looks like a GLSL compiler issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 74717] r600g: 'invalid read' linking geometry shader

2014-02-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=74717

--- Comment #6 from kwahoo2 at wp.pl ---
(In reply to comment #5)
> > You need to run it from the source root, like this: 
> > $ build/build/release/gl-320-primitive-shading
> 
> build/release/gl-320-primitive-shading

Right, now the examples works. Except gl-320-primitive-shading 

./build/release/gl-320-primitive-shading 
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...

Segmentation fault

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 74717] r600g: 'invalid read' linking geometry shader

2014-02-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=74717

--- Comment #5 from T?r?k Edwin  ---
(In reply to comment #4)
> (In reply to comment #3)
> > G-truck samples don't work for me too (similar error for ether samples):
> > 
> > ./gl-320-primitive-shading 
> > OpenGL Version Needed 3.2 ( 3.3 Found )
> > Shader Compiler: error(high) 2: 0:1(1): error: syntax error, unexpected $end
> > Shader Compiler: error(high) 3: 0:1(1): error: syntax error, unexpected $end
> > Shader Compiler: error(high) 4: 0:1(1): error: syntax error, unexpected $end
> 
> You need to run it from the source root, like this: 
> $ build/build/release/gl-320-primitive-shading

build/release/gl-320-primitive-shading

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 74717] r600g: 'invalid read' linking geometry shader

2014-02-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=74717

--- Comment #4 from T?r?k Edwin  ---
(In reply to comment #3)
> G-truck samples don't work for me too (similar error for ether samples):
> 
> ./gl-320-primitive-shading 
> OpenGL Version Needed 3.2 ( 3.3 Found )
> Shader Compiler: error(high) 2: 0:1(1): error: syntax error, unexpected $end
> Shader Compiler: error(high) 3: 0:1(1): error: syntax error, unexpected $end
> Shader Compiler: error(high) 4: 0:1(1): error: syntax error, unexpected $end

You need to run it from the source root, like this: 
$ build/build/release/gl-320-primitive-shading

Otherwise it can't find/load the shader, and thats a shortcoming in the
samples, not Mesa.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 74717] r600g: 'invalid read' linking geometry shader

2014-02-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=74717

--- Comment #3 from kwahoo2 at wp.pl ---
G-truck samples don't work for me too (similar error for ether samples):

./gl-320-primitive-shading 
OpenGL Version Needed 3.2 ( 3.3 Found )
Shader Compiler: error(high) 2: 0:1(1): error: syntax error, unexpected $end
Shader Compiler: error(high) 3: 0:1(1): error: syntax error, unexpected $end
Shader Compiler: error(high) 4: 0:1(1): error: syntax error, unexpected $end
Compiling shader
gl-320/primitive-shading.vert...
0:1(1): error: syntax error, unexpected $end

Running Test
Test Ended


glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TURKS
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.2.0-devel
(git-020c43f saucy-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.2.0-devel (git-020c43f saucy-oibaf-ppa)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)


01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Turks
XT [Radeon HD 6670/7670]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 74717] r600g: 'invalid read' linking geometry shader

2014-02-08 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=74717

--- Comment #2 from T?r?k Edwin  ---
(In reply to comment #1)
> 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.

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.
0x00382c4351d5 in __GI_raise (sig=sig at 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  0x00382c4351d5 in __GI_raise (sig=sig at entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00382c438388 in __GI_abort () at abort.c:90
#2  0x00382c42e252 in __assert_fail_base (fmt=0x382c56c080 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", 
assertion=assertion at entry=0x770d6cb8 "lhs_components ==
this->rhs->type->vector_elements", 
file=file at entry=0x770d6c57 "../../src/glsl/ir.cpp",
line=line at entry=170, 
function=function at entry=0x770d7960
 "ir_assignment::ir_assignment(ir_dereference*,
ir_rvalue*, ir_rvalue*, unsigned int)") at assert.c:92
#3  0x00382c42e302 in __GI___assert_fail (assertion=0x770d6cb8
"lhs_components == this->rhs->type->vector_elements", 
file=0x770d6c57 "../../src/glsl/ir.cpp", line=170, 
function=0x770d7960 
"ir_assignment::ir_assignment(ir_dereference*, ir_rvalue*, ir_rvalue*, unsigned
int)") at assert.c:101
#4  0x765950c1 in ir_assignment::ir_assignment (this=0xa4f8f0,
lhs=0xa4f250, rhs=0xa4f3a0, condition=0x0, write_mask=15)
at ../../src/glsl/ir.cpp:170
#5  0x7659b9b7 in ir_assignment::clone (this=0xa42880,
mem_ctx=0x79f4e0, ht=0xa4ef50) at ../../src/glsl/ir_clone.cpp:271
#6  0x7659bfcf in clone_ir_list (mem_ctx=0x79f4e0, out=0x7fffd8e0,
in=0xa41f60) at ../../src/glsl/ir_clone.cpp:432
#7  0x765bffe5 in (anonymous
namespace)::loop_unroll_visitor::simple_unroll (this=0x7fffdba0,
ir=0xa41f40, 
iterations=3) at ../../src/glsl/loop_unroll.cpp:112
#8  0x765c03ae in (anonymous
namespace)::loop_unroll_visitor::visit_leave (this=0x7fffdba0, ir=0xa41f40)
at ../../src/glsl/loop_unroll.cpp:270
#9  0x765a5633 in ir_loop::accept (this=0xa41f40, v=0x7fffdba0) at
../../src/glsl/ir_hv_accept.cpp:94
#10 0x765a5505 in visit_list_elements (v=0x7fffdba0, l=0xa41b38,
statement_list=true)
at ../../src/glsl/ir_hv_accept.cpp:56
#11 0x765a56f5 in ir_function_signature::accept (this=0xa41af0,
v=0x7fffdba0) at ../../src/glsl/ir_hv_accept.cpp:116
#12 0x765a5505 in visit_list_elements (v=0x7fffdba0, l=0xa41a58,
statement_list=false)
at ../../src/glsl/ir_hv_accept.cpp:56
#13 0x765a5789 in ir_function::accept (this=0xa41a30, v=0x7fffdba0)
at ../../src/glsl/ir_hv_accept.cpp:128
#14 0x765a5505 in visit_list_elements (v=0x7fffdba0, l=0xa3d400,
statement_list=true)
at ../../src/glsl/ir_hv_accept.cpp:56
#15 0x765a5426 in ir_hierarchical_visitor::run (this=0x7fffdba0,
instructions=0xa3d400)
at ../../src/glsl/ir_hierarchical_visitor.cpp:309
#16 0x765c065d in unroll_loops (instructions=0xa3d400, ls=0xa4f3f0,
max_iterations=255)
at ../../src/glsl/loop_unroll.cpp:345
#17 0x76591377 in do_common_optimization (ir=0xa3d400, linked=true,
uniform_locations_assigned=false, 
max_unroll_iterations=255, options=0x753a6eec) at
../../src/glsl/glsl_parser_extras.cpp:1507
#18 0x765bd46b in link_shaders (ctx=0x75385010, prog=0xa30aa0) at
../../src/glsl/linker.cpp:2172
#19 0x764f37b7 in _mesa_glsl_link_shader (ctx=0x75385010,
prog=0xa30aa0) at program/ir_to_mesa.cpp:3087
#20 0x763f97c0 in link_program (ctx=0x75385010, program=4) at
main/shaderapi.c:873
#21 0x763fa592 in _mesa_LinkProgram (programObj=4) at
main/shaderapi.c:1333
#22 0x00436ea4 in initProgram() ()
#23 0x004372f1 in begin() ()
#24 0x00438ecb in glf::run(int, char**, glm::detail::tvec2 const&, int, int, int) ()

-- 
You are receiving this 

[Bug 74717] r600g: 'invalid read' linking geometry shader

2014-02-08 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=74717

Andreas Boll  changed:

   What|Removed |Added

 CC||andreas.boll.dev at gmail.com,
   ||mesa-dev at lists.freedesktop.
   ||org

--- Comment #1 from Andreas Boll  ---
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.



OpenGL renderer string: Gallium 0.4 on AMD BARTS
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.2.0-devel
(git-6e8d04a)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.2.0-devel (git-6e8d04a)
OpenGL shading language version string: 1.30

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: