https://bugs.freedesktop.org/show_bug.cgi?id=55217
Bug #: 55217 Summary: [RS880] opengl not working anymore Classification: Unclassified Product: DRI Version: unspecified Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/Radeon AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: michaell@gmx.org
after updating mesa to latest git, i can not using opengl-apps anymore
running glxgears give the following error message: EE r600_asm.c:121 r600_bytecode_get_num_operands - Need instruction operand number for 0xc
testet with kernel 3.5.1 and 3.6.0-rc6
using xorg-server-1.12.2 and libdrm, mesa, xf86-video-ati from git
removing xorg.conf gives the same error
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #1 from Michael Lange michaell@gmx.org 2012-09-22 09:48:57 UTC --- Created attachment 67541 --> https://bugs.freedesktop.org/attachment.cgi?id=67541 dmesg
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #2 from Michael Lange michaell@gmx.org 2012-09-22 09:49:29 UTC --- Created attachment 67542 --> https://bugs.freedesktop.org/attachment.cgi?id=67542 Xorg.0.log
https://bugs.freedesktop.org/show_bug.cgi?id=55217
rboudot@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rboudot@hotmail.com
--- Comment #3 from rboudot@hotmail.com 2012-09-22 13:52:29 UTC --- Me too
Also Unity on Ubuntu 12.04 displays black screen with only the mouse pointer. Switching to another virtual console or logging in Unity 2D works though.
Radeon HD3450 (RV620) on Ubuntu 12.04 + OIBAF PPA
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #4 from Alex Deucher agd5f@yahoo.com 2012-09-22 14:52:35 UTC --- Can you bisect?
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #5 from Michael Lange michaell@gmx.org 2012-09-22 17:32:05 UTC --- sorry, but which PATH environment variables i have to set?
LD_LIBRARY_PATH="~/mesa/src/glx" glxgears does not work
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #6 from Alex Deucher agd5f@yahoo.com 2012-09-22 18:40:41 UTC --- Bisect is a git option to identify what commit caused a problem. Google for "git bisect".
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #7 from Michael Lange michaell@gmx.org 2012-09-22 19:33:01 UTC --- yes ... i have google for it ;) so i should bisect mesa-git, right?
* i have clone the mesa-git with git clone git://anongit.freedesktop.org/git/mesa/mesa * cd mesa * git checkout 9aa8bac9 (i think this was working "date 2012-09-19") * ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --enable-dri --enable-glx --enable-texture-float --disable-debug --enable-egl --enable-gbm --enable-gles1 --enable-gles2 --enable-glx-tls --disable-osmesa --enable-asm --enable-shared-glapi --enable-xa --enable-xorg --with-dri-drivers= --with-gallium-drivers=,swrast,r600 --with-egl-platforms=x11,drm --enable-gallium-egl --enable-gallium-g3dvl --enable-gallium-llvm --disable-openvg --enable-r600-llvm-compiler --disable-vdpau --enable-xvmc * make * now i would like testing mesa, but how? running glxgears uses the system-libs from /usr/lib64.
with EGIT_COMMIT="9aa8bac98b823e8783bc3a06a6e5b23fbf8d87fb" emerge mesa i got a working mesa.
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #8 from Michael Lange michaell@gmx.org 2012-09-22 19:35:57 UTC --- my system is working and running with a mesa-build from 2012-09-19 how i could test the mesa-build in my home-dir?
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #9 from Matt Turner mattst88@gmail.com 2012-09-22 20:34:51 UTC --- (In reply to comment #8)
my system is working and running with a mesa-build from 2012-09-19 how i could test the mesa-build in my home-dir?
You can set where to look for shared libraries by settings LD_LIBRARY_PATH=... and where to look for DRI drivers with LIBGL_DRIVERS_PATH=...
E.g., LD_LIBRARY_PATH=<directory where libGL.so.1 lives> LIBGL_DRIVERS_PATH=<directory where r600_dri.so lives> glxgears
will run glxgears with your new Mesa.
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #10 from Marek Olšák maraeo@gmail.com 2012-09-22 20:59:42 UTC --- I can't reproduce this. Mesa master on RS880 is working fine here.
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #11 from Fabio Pedretti fabio.ped@libero.it 2012-09-23 07:07:12 UTC --- (In reply to comment #10)
I can't reproduce this. Mesa master on RS880 is working fine here.
A quick search in the git log returned this: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b4aefd3c9c1b04832306b8114b...
Did you compile with --enable-r600-llvm-compiler ? It's enabled in my PPA.
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #12 from kowalski marcin yoshi314@gmail.com --- i'm currently experiencing this with rs780 and darkplaces. I only get black screen, and logs are filled with this error. I have an llvm-enabled build of mesa.
This is on current git @ fb40f88338b6af23faae03ced5906add8507db26
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #13 from Michael Lange michaell@gmx.org --- (In reply to comment #9)
E.g., LD_LIBRARY_PATH=<directory where libGL.so.1 lives> LIBGL_DRIVERS_PATH=<directory where r600_dri.so lives> glxgears
will run glxgears with your new Mesa.
thanks, this works
currently bisecting mesa - two steps to go
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #14 from Tom Stellard tstellar@gmail.com --- If you are using the llvm compiler setting the environment variable R600_LLVM=0 will cause the driver to fall back to the TGSI compiler and should fix the rendering errors.
It would be helpful if someone could run one of the affected programs with the R600_DUMP_SHADES=1 environment variable set and post the output.
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #15 from Tom Stellard tstellar@gmail.com --- (In reply to comment #14)
If you are using the llvm compiler setting the environment variable R600_LLVM=0 will cause the driver to fall back to the TGSI compiler and should fix the rendering errors.
It would be helpful if someone could run one of the affected programs with the R600_DUMP_SHADES=1 environment variable set and post the output.
Sorry, typo above. The environment variable is R600_DUMP_SHADERS=1
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #16 from Michael Lange michaell@gmx.org --- bisecting mesa comes to this
0e0c21e00ee80bcff67e37ec86b97d6c25db066a is the first bad commit commit 0e0c21e00ee80bcff67e37ec86b97d6c25db066a Author: Michal Sciubidlo michal.sciubidlo@gmail.com Date: Wed Sep 12 08:57:01 2012 +0200
radeon/llvm: Emit ISA for ALU instructions in the R600 code emitter
Signed-off-by: Tom Stellard thomas.stellard@amd.com
:040000 040000 de615a99537b02f3e978f285393559da27d8c1da 2e75e2c1ba7912acfdbbb38c65c3c21831b258da M src
configure is in comment 7
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #17 from Michael Lange michaell@gmx.org --- Created attachment 67582 --> https://bugs.freedesktop.org/attachment.cgi?id=67582&action=edit R600_DUMP_SHADERS=1
https://bugs.freedesktop.org/show_bug.cgi?id=55217
Michael Lange michaell@gmx.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #67582|0 |1 is obsolete| |
--- Comment #18 from Michael Lange michaell@gmx.org --- Created attachment 67583 --> https://bugs.freedesktop.org/attachment.cgi?id=67583&action=edit R600_DUMP_SHADERS=1
ahhh ... rtf-file - i hate this texteditor from macosx
nano make this right ;)
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #19 from Michael Lange michaell@gmx.org --- in case it is important, i have set some environment variables
belly@jelly ~/mesa $ env | grep R600 R600_STREAMOUT=1 R600_HYPERZ=1 R600_GLSL130=1 R600_TILING=1 R600_SURF=1
this was set for a few months to test something, i forgot to reset this
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #20 from Tom Stellard tstellar@gmail.com --- Created attachment 67586 --> https://bugs.freedesktop.org/attachment.cgi?id=67586&action=edit Possible fix
Does this patch fix the problem?
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #21 from Michael Lange michaell@gmx.org --- (In reply to comment #20)
Created attachment 67586 [details] [review] Possible fix
Does this patch fix the problem?
your patch works tested with the latest mesa-version from git
https://bugs.freedesktop.org/show_bug.cgi?id=55217
--- Comment #22 from Michel Dänzer michel@daenzer.net --- (In reply to comment #20)
Created attachment 67586 [details] [review] Possible fix
Tested-by: Michel Dänzer michel.daenzer@amd.com
https://bugs.freedesktop.org/show_bug.cgi?id=55217
Fabio Pedretti fabio.ped@libero.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #23 from Fabio Pedretti fabio.ped@libero.it --- Fixed with 92b033a89ebd46d640ecb2592159087a87e5516e .
dri-devel@lists.freedesktop.org