Bug 54230

Summary: r600-llvm-compiler completely broken at CAYMAN
Product: Mesa Reporter: Thomas Rohloff <v10lator>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: The desktop with compiz.
Minecrafts main menue.
dmesg
Xorg.0.log
R600_DUMP_SHADERS=1 compiz --replace > Desktop/compiz-shader.txt 2>&1
R600_DUMP_SHADERS=1 java -jar minecraft.jar > Desktop/minecraft-shader.txt 2>&1

Description Thomas Rohloff 2012-08-29 20:48:36 UTC
Created attachment 66294 [details]
The desktop with compiz.

Today I decided to give the llvm shader compiler a try, so I compiled mesa (from git) with it enabled.
The result was a completely broken desktop. With the help of a 2d desktop environment I was able to capture some screenshots/videos from Minecraft (see attachments).

No information in dmesg and/or Xorg.0.log (I attach them anyway).
Comment 1 Thomas Rohloff 2012-08-29 20:49:21 UTC
Created attachment 66295 [details]
Minecrafts main menue.
Comment 2 Thomas Rohloff 2012-08-29 20:54:31 UTC
Created attachment 66296 [details]
dmesg
Comment 3 Thomas Rohloff 2012-08-29 20:55:07 UTC
Created attachment 66297 [details]
Xorg.0.log
Comment 4 Thomas Rohloff 2012-08-30 08:54:22 UTC
As the video is to big for an attachment here's a link: https://vimeo.com/48479243
It shows Minecraft in-game.
Comment 5 Tom Stellard 2012-08-30 13:13:28 UTC
The llvm backend hasn't been tested much on Cayman, so probably some of the Cayman specific features aren't working correctly. Could you set the environment variable R600_DUMP_SHADERS=1 and then post the debug output from compiz and minecraft?
Comment 6 Thomas Rohloff 2012-08-31 12:37:31 UTC
Created attachment 66403 [details]
R600_DUMP_SHADERS=1 compiz --replace > Desktop/compiz-shader.txt 2>&1

(In reply to comment #5)
I hope this is what you wanted.
Comment 7 Thomas Rohloff 2012-08-31 12:38:25 UTC
Created attachment 66404 [details]
R600_DUMP_SHADERS=1 java  -jar minecraft.jar > Desktop/minecraft-shader.txt 2>&1
Comment 8 Vadim Girlin 2012-08-31 16:22:43 UTC
(In reply to comment #5)
> The llvm backend hasn't been tested much on Cayman, so probably some of the
> Cayman specific features aren't working correctly. Could you set the
> environment variable R600_DUMP_SHADERS=1 and then post the debug output from
> compiz and minecraft?

It seems alu instruction 0x86 RECIP_IEEE is emitted in a single slot, though IIRC it should be at least on three slots x-z.
Comment 9 GitLab Migration User 2019-09-18 19:00:48 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/417.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.