Skip to contentSkip to conversation

New: [RS880] opengl not working anymore

Bug 55217 [email protected] 1 participant 24 messages Sep 22, 2012 – Sep 28, 2012

lore
Share & tools
lore
#0 lore raw

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: [email protected]
ReportedBy: [email protected]

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

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 55217] [RS880] opengl not working anymore

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #1 from Michael Lange <[email protected]> 2012-09-22 09:48:57 UTC --- Created attachment 67541
--> https://bugs.freedesktop.org/attachment.cgi?id=67541
dmesg

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #2 from Michael Lange <[email protected]> 2012-09-22 09:49:29 UTC --- Created attachment 67542
--> https://bugs.freedesktop.org/attachment.cgi?id=67542
Xorg.0.log

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from [email protected] 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

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #5 from Michael Lange <[email protected]> 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

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #6 from Alex Deucher <[email protected]> 2012-09-22 18:40:41 UTC --- Bisect is a git option to identify what commit caused a problem. Google for "git bisect".

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #7 from Michael Lange <[email protected]> 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.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #8 from Michael Lange <[email protected]> 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?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #9 from Matt Turner <[email protected]> 2012-09-22 20:34:51 UTC --- (In reply to comment #8)

Quoted 2 lines

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.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #10 from Marek Olšák <[email protected]> 2012-09-22 20:59:42 UTC --- I can't reproduce this. Mesa master on RS880 is working fine here.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #11 from Fabio Pedretti <[email protected]> 2012-09-23 07:07:12 UTC --- (In reply to comment #10)

Quoted 1 line

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=7b4aefd3c9c1b04832306b8114b3f2007318f087

Did you compile with --enable-r600-llvm-compiler ? It's enabled in my PPA.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #12 from kowalski marcin <[email protected]> --- 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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #13 from Michael Lange <[email protected]> --- (In reply to comment #9)

Quoted 5 lines

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #14 from Tom Stellard <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #15 from Tom Stellard <[email protected]> --- (In reply to comment #14)

Quoted 6 lines

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #16 from Michael Lange <[email protected]> --- bisecting mesa comes to this

0e0c21e00ee80bcff67e37ec86b97d6c25db066a is the first bad commit commit 0e0c21e00ee80bcff67e37ec86b97d6c25db066a

Author: Michal Sciubidlo <[email protected]>
Date:   Wed Sep 12 08:57:01 2012 +0200

radeon/llvm: Emit ISA for ALU instructions in the R600 code emitter

:040000 040000 de615a99537b02f3e978f285393559da27d8c1da
2e75e2c1ba7912acfdbbb38c65c3c21831b258da M src

configure is in comment 7

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #17 from Michael Lange <[email protected]> --- Created attachment 67582
--> https://bugs.freedesktop.org/attachment.cgi?id=67582&action=edit
R600_DUMP_SHADERS=1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

Michael Lange <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #67582|0                           |1

is obsolete| |

--- Comment #18 from Michael Lange <[email protected]> --- 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 ;)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #19 from Michael Lange <[email protected]> --- 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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #20 from Tom Stellard <[email protected]> --- Created attachment 67586
--> https://bugs.freedesktop.org/attachment.cgi?id=67586&action=edit
Possible fix

Does this patch fix the problem?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #21 from Michael Lange <[email protected]> --- (In reply to comment #20)

Quoted 4 lines

Created attachment 67586 [details] [review]
Possible fix

Does this patch fix the problem?

your patch works
tested with the latest mesa-version from git

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author Tested-by Michel Dänzer
#22 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

--- Comment #22 from Michel Dänzer <[email protected]> --- (In reply to comment #20)

Quoted 2 lines

Created attachment 67586 [details] [review]
Possible fix

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#23 lore raw

[Bug 55217] [RS880] opengl not working anymore

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=55217

Fabio Pedretti <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #23 from Fabio Pedretti <[email protected]> --- Fixed with 92b033a89ebd46d640ecb2592159087a87e5516e .

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel