Announcement

Collapse
No announcement yet.

Radeon LLVM GPU Back-End Stripped From Mesa

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Radeon LLVM GPU Back-End Stripped From Mesa

    Phoronix: Radeon LLVM GPU Back-End Stripped From Mesa

    The R600 LLVM back-end for the Radeon Gallium3D driver was removed from Mesa...

    http://www.phoronix.com/vr.php?view=MTI2OTE

  • #2
    Originally posted by phoronix View Post
    Phoronix: Radeon LLVM GPU Back-End Stripped From Mesa

    The R600 LLVM back-end for the Radeon Gallium3D driver was removed from Mesa...

    http://www.phoronix.com/vr.php?view=MTI2OTE
    And a good thing this is. If this had not happened, we'd have 3 different R600 LLVM back-ends to choose from when writing code. Mesa's R600 back-end, Tom's LLVM tree, or the upstream LLVM repository. Any fixes/improvements would have to be synchronized between all 3 repositories.

    Now we're down to 2 repositories, and I believe that Tom has committed to handling the upstreaming of fixes based on his tree to the upstream LLVM project.

    Comment


    • #3
      Originally posted by Veerappan View Post
      And a good thing this is. If this had not happened, we'd have 3 different R600 LLVM back-ends to choose from when writing code. Mesa's R600 back-end, Tom's LLVM tree, or the upstream LLVM repository. Any fixes/improvements would have to be synchronized between all 3 repositories.

      Now we're down to 2 repositories, and I believe that Tom has committed to handling the upstreaming of fixes based on his tree to the upstream LLVM project.
      well, it's great that we have llvm for radeon

      but there's 2 (or some more - haven't tested more than that) main issues I'm facing with it when for my daily work:

      I'm running compiz 0.8* (0.9* is unstable for me and it's also not as fast & stable as 0.8* - at least for me)


      - the exposť-like feature leads to a black screen

      - likewise with the zoom feature

      if anyone of the devs is reading here along - could you try to reproduce and see if there's a fix for that ?

      (I'm using llvm from Tom's repo via FireBurn overlay with Gentoo)


      afaik at the beginning when I started testing it some videoplayback (via smplayer) or even flash (in chromium) also didn't work -> black content


      thanks !

      Comment


      • #4
        Typical case of mild form of idocracy ;-) At least MESA should have left the code within their codebase as long as LLVM hasn't the backend officially ...

        Comment


        • #5
          it seems to improve now:

          when triggering the exposť-like feature (vortex animation is selected) for a short second I can see the background - then the screen turns black


          also switching desktops via ctrl + alt + arrow (left, right, up, down) also leads to a black screen - when the animation has ended the desktop is viewable again


          when zooming in (using the "zoom" feature) the mouse-cursor is still viewable - not sure if it was there before



          definitely things seem to be improving

          thanks devs !


          in the past when I first wanted to try out llvm upon launch of X (lightdm) the screen was totally black - so there's been lots of progress

          Comment


          • #6
            Originally posted by kernelOfTruth View Post
            it seems to improve now:

            when triggering the exposť-like feature (vortex animation is selected) for a short second I can see the background - then the screen turns black


            also switching desktops via ctrl + alt + arrow (left, right, up, down) also leads to a black screen - when the animation has ended the desktop is viewable again


            when zooming in (using the "zoom" feature) the mouse-cursor is still viewable - not sure if it was there before
            Which card do you have ? Maybe compiz is triggering a bug not covered by piglit.

            Comment


            • #7
              Originally posted by vljn View Post
              Which card do you have ? Maybe compiz is triggering a bug not covered by piglit.
              01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cypress PRO [Radeon HD 5800 Series]
              01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cypress HDMI Audio [Radeon HD 5800 Series]
              01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cypress PRO [Radeon HD 5800 Series] (prog-if 00 [VGA controller])
              Subsystem: Advanced Micro Devices [AMD] nee ATI Device 0b00
              Flags: bus master, fast devsel, latency 0, IRQ 49
              Memory at d0000000 (64-bit, prefetchable) [size=256M]
              Memory at fbde0000 (64-bit, non-prefetchable) [size=128K]
              I/O ports at c000 [size=256]
              Expansion ROM at fbdc0000 [disabled] [size=128K]
              Capabilities: [50] Power Management version 3
              Capabilities: [58] Express Legacy Endpoint, MSI 00
              Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
              Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
              Capabilities: [150] Advanced Error Reporting
              Kernel driver in use: radeon

              01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cypress HDMI Audio [Radeon HD 5800 Series]
              Subsystem: Advanced Micro Devices [AMD] nee ATI Cypress HDMI Audio [Radeon HD 5800 Series]
              Flags: bus master, fast devsel, latency 0, IRQ 48
              Memory at fbdbc000 (64-bit, non-prefetchable) [size=16K]
              Capabilities: [50] Power Management version 3
              Capabilities: [58] Express Legacy Endpoint, MSI 00
              Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
              Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
              Capabilities: [150] Advanced Error Reporting
              Kernel driver in use: snd_hda_intel
              Originally posted by "Xorg.0.log
              [ 63.900] (--) RADEON(0): Chipset: "ATI Radeon HD 5800 Series" (ChipID = 0x6899)
              please let me know if you need more information

              Comment


              • #8
                It's much easier to diagnose the problem is you file a bug report (https://bugs.freedesktop.org) and attach your xorg log and dmesg output.

                Comment


                • #9
                  Originally posted by agd5f View Post
                  It's much easier to diagnose the problem is you file a bug report (https://bugs.freedesktop.org) and attach your xorg log and dmesg output.
                  sure, will do

                  I'll give it another try within the next days and post the corresponding logs

                  thanks !

                  Comment


                  • #10
                    Originally posted by agd5f View Post
                    It's much easier to diagnose the problem is you file a bug report (https://bugs.freedesktop.org) and attach your xorg log and dmesg output.
                    https://bugs.freedesktop.org/show_bug.cgi?id=61446

                    if you need more info - just ask

                    Comment


                    • #11
                      Originally posted by kernelOfTruth View Post
                      https://bugs.freedesktop.org/show_bug.cgi?id=61446

                      if you need more info - just ask
                      it seems that these issues are fixed

                      exposť-like feature & zoom work now with llvm enabled


                      thanks to http://cgit.freedesktop.org/~tstella...9fe5702f77fc0f ?

                      Thanks a lot !

                      Comment


                      • #12
                        Originally posted by kernelOfTruth View Post
                        it seems that these issues are fixed

                        exposť-like feature & zoom work now with llvm enabled


                        thanks to http://cgit.freedesktop.org/~tstella...9fe5702f77fc0f ?

                        Thanks a lot !


                        compiz segfaults with latest compiled mesa & r600-llvm-compiler enabled

                        [ 1505.893971] compiz[2576]: segfault at 0 ip 00007fdcb21ee4e5 sp 00007fff35cb55a0 error 4 in r600g_dri.so[7fdcb1c3e000+1376000]
                        [ 1505.918025] glxinfo[2584]: segfault at 0 ip 00007fb366e514e5 sp 00007fff72a1cda0 error 4 in r600g_dri.so[7fb3668a1000+1376000]
                        [ 1506.936543] compiz[2636]: segfault at 0 ip 00007fb4cf0954e5 sp 00007fffe6a5ec20 error 4 in r600g_dri.so[7fb4ceae5000+1376000]
                        [ 1524.386208] kwin_opengl_tes[2687]: segfault at 0 ip 00007f6fbceca4e5 sp 00007fffed36f5d0 error 4 in r600g_dri.so[7f6fbc91a000+1376000]
                        [ 1530.815557] compiz[2875]: segfault at 0 ip 00007f8f329844e5 sp 00007fffd61b3150 error 4 in r600g_dri.so[7f8f323d4000+1376000]
                        [ 1530.844334] glxinfo[2883]: segfault at 0 ip 00007f8735e6b4e5 sp 00007fffe87ca980 error 4 in r600g_dri.so[7f87358bb000+1376000]
                        [ 1538.043691] compiz[2978]: segfault at 0 ip 00007fb3635224e5 sp 00007fff0b109ba0 error 4 in r600g_dri.so[7fb362f72000+1376000]
                        [ 1543.808888] compiz[2986]: segfault at 0 ip 00007fd291c7f4e5 sp 00007fff51276970 error 4 in r600g_dri.so[7fd2916cf000+1376000]
                        [ 1596.356405] chrome[3168]: segfault at 0 ip 00007f246c8e64e5 sp 00007fff5244b090 error 4 in r600g_dri.so[7f246c336000+1376000]

                        Comment


                        • #13
                          It seems related to https://bugs.freedesktop.org/show_bug.cgi?id=63632 . Can you provide some info on your config on buzilla ?

                          Comment


                          • #14
                            Originally posted by vljn View Post
                            It seems related to https://bugs.freedesktop.org/show_bug.cgi?id=63632 . Can you provide some info on your config on buzilla ?
                            thanks for posting the link !

                            seems like they now moved on from Tom Stellar's git repo to the upstream svn repo - wasn't aware of that (been wondering why there was no recent changes ^^)

                            will recompile llvm & see whether that solves the issue

                            Comment


                            • #15
                              Originally posted by kernelOfTruth View Post
                              thanks for posting the link !

                              seems like they now moved on from Tom Stellar's git repo to the upstream svn repo - wasn't aware of that (been wondering why there was no recent changes ^^)

                              will recompile llvm & see whether that solves the issue
                              yeah, that helped - now it seems to work fine again

                              thanks !

                              Comment

                              Working...
                              X