Announcement

Collapse
No announcement yet.

MLAA For Mesa Is Ready For Testing

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

  • #31
    The test app sets vblank_mode to 0 to avoid vsync. Swapbufferswait can't be overridden from the app though.

    Comment


    • #32
      Originally posted by curaga View Post
      The test app sets vblank_mode to 0 to avoid vsync. Swapbufferswait can't be overridden from the app though.
      Yeah, I was wondering why it didn't cause the sphere to run at 60FPS without MLAA.

      Results without SwapbuffersWait:
      low: Average on fps 86.40, average off fps 811.24
      high: Average on fps 162.36, average off fps 1540.74

      Comment


      • #33
        Some more data points:

        RV570 / r300g
        Ran 60.835s, average fps 360.19, min 1

        Average on fps 181.47, average off fps 574.93

        G45/Eaglelake / i965
        Ran 112.156s, average fps 79.93, min 1

        Average on fps 20.30, average off fps 199.95

        MLAA isn't rendering correctly with i965 as seen on this screenshot: (ignore the tearing)
        http://dl.dropbox.com/u/28577999/Scr...d%20Window.png

        Not sure if it's of any interest, I guess you're targeting G3D-drivers?

        Comment


        • #34
          Yeah, inside Mesa it's gallium only. But if i965 claims to support the required extensions, you might want to report the bug.

          Thanks for the testing whizse

          Comment


          • #35
            Code:
            Irrlicht Engine version 1.7.2
            Linux 3.0.0-0300rc2-generic #201106081532 SMP Wed Jun 8 16:21:54 UTC 2011 i686
            Creating X window...
            ATTENTION: default value of option vblank_mode overridden by environment.
            ATTENTION: default value of option vblank_mode overridden by environment.
            ATTENTION: option value of option vblank_mode ignored.
            Visual chosen: : 276
            Using renderer: OpenGL 2.1
            Gallium 0.4 on ATI RS480: X.Org R300 Project
            OpenGL driver version is 1.2 or better.
            GLSL version: 1.2
            Loaded texture: AreaMap33
            Unsupported texture format
            GLSL shader failed to compile
            0:4(12): warning: extension `GL_ARB_shader_texture_lod' unsupported in fragment shader
            0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)'
            0:16(86): error: `return' with wrong type , in function `tex2Doffset' returning vec4
            0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)'
            0:72(48): error: type mismatch
            0:72(48): error: `return' with wrong type , in function `Area' returning vec2
            0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)'
            0:88(54): error: type mismatch
            0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)'
            0:89(54): error: type mismatch
            0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)'
            0:103(54): error: type mismatch
            0:0(0): error: no matching function for call to `texture2DLod(sampler2D, vec2, float)'
            0:104(54): error: type mismatch
            
            Quit message received.
            
            Ran 160.744s, average fps 67.58, min 1
            
            Average on fps 8.91, average off fps 109.41
            Does not seem to do anything on mine image quality wise (I guess it's that shader warning up there). No visible image distortion/artifacts.

            Mesa 7.12
            RS480 (200M) on r300g
            swapbufferswait off
            vblank_mode 0

            Comment


            • #36
              r500+ ?

              I think that GL_ARB_shader_texture_lod is only available on SM 3.0 (r500) cards and higher.

              Comment


              • #37
                [stephen@goodt60 MLAA-test-app]$ ./mlaatest
                Irrlicht Engine version 1.7.2
                Linux 2.6.39-ARCH #1 SMP PREEMPT Mon Jun 27 22:01:13 CEST 2011 i686
                ATTENTION: default value of option vblank_mode overridden by environment.
                ATTENTION: default value of option vblank_mode overridden by environment.
                Using renderer: OpenGL 2.1
                Gallium 0.4 on ATI RV515: X.Org R300 Project
                OpenGL driver version is 1.2 or better.
                GLSL version: 1.2
                Loaded texture: AreaMap33
                Unsupported texture format
                Quit message received.

                Ran 10.341s, average fps 187.40, min 1


                Still reporting MLAA as being off, and still jagged edges.

                This is with the latest git master mesa, on an X1400 (r500). I'm using KDE4, and turning composting on/off doesn't change the result.
                Last edited by TheCycoONE; 07-07-2011, 11:05 PM.

                Comment


                • #38
                  Originally posted by TheCycoONE View Post
                  Still reporting MLAA as being off, and still jagged edges.
                  You can toggle MLAA with pressing 'm' on your keyboard

                  Comment


                  • #39
                    Originally posted by smitty3268 View Post
                    I think that GL_ARB_shader_texture_lod is only available on SM 3.0 (r500) cards and higher.
                    Yeah, the minimum hw is r500/gf6. Not sure what's the minimum on intel.

                    Comment


                    • #40
                      Originally posted by droste View Post
                      You can toggle MLAA with pressing 'm' on your keyboard
                      Thanks, with MLAA I get good output (including smoothing) and 20fps. KDE feels really sluggish while it's on and I get a warning that desktop effects are being disabled due to bad performance, but CPU utilization is low.

                      Comment


                      • #41
                        HD2400 Pro test

                        Hi,

                        Code:
                        [msaun@phobos Linux]$ ./mlaatest
                        Irrlicht Engine version 1.7.2
                        Linux 2.6.38.8-32.fc15.x86_64 #1 SMP Mon Jun 13 19:49:05 UTC 2011 x86_64
                        Creating X window...
                        ATTENTION: default value of option vblank_mode overridden by environment.
                        ATTENTION: default value of option vblank_mode overridden by environment.
                        Visual chosen: : 282
                        Using renderer: OpenGL 2.1
                        Gallium 0.4 on AMD RV610: X.Org
                        OpenGL driver version is 1.2 or better.
                        GLSL version: 1.2
                        Loaded texture: AreaMap33
                        Unsupported texture format
                        Quit message received.
                        
                        Ran 53.019s, average fps 55.35, min 1
                        
                        Average on fps 14.78, average off fps 94.92
                        The vid card in this system is:
                        01:00.0 VGA compatible controller: ATI Technologies Inc RV610 video device [Radeon HD 2400 PRO]

                        Comment


                        • #42
                          Hi all,
                          I've read this Phoronix article with some interest. I have tested the MLAA for Mesa with the nouveau nvfx driver. I'm currently on Fedora 15 with a NV40 (Geforce 6,800 GT) Graphics Card.

                          The results failed for me.when I exported my paths to point to my "just built" not installed Mesa from git,I ran the ./mlaatest and the test just froze. I couldn't save the error,but it came up with something like "no GLSL detected".

                          I have built the xserver from git on my system and I keep that up to date,with a git version of Mesa there too. When I logged into my git xserver, ( exported the paths pointing to /mesa/lib and /mesa/lib/gallium to the Mesa that is in my xorg-git folder where I built my git version of xserver and ran /path/to/my/xorg/git/bin/startx).

                          I ran the same ./mlaatest executable,the window did flare up,bwith lots of lines,and I got this error:

                          [CODE[steve@mernivia 32]$ ./mlaatest
                          Irrlicht Engine version 1.7.2
                          Linux 3.0.0-rc6+ #1 SMP Wed Jul 6 11:03:12 BST 2011 i686
                          Using renderer: OpenGL 2.1
                          Mesa X11: Brian Paul
                          OpenGL driver version is 1.2 or better.
                          GLSL version: 1.2
                          Mesa warning: User called no-op dispatch function (an unsupported extension function?)
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Mesa: User error: GL_INVALID_ENUM in glProgramParameters4fvNV
                          Loaded texture: AreaMap33
                          Mesa: User error: GL_INVALID_OPERATION in glEndConditionalRender()
                          Mesa: User error: GL_INVALID_ENUM in glGetIntegerIndexedv(pname=GL_FRAMEBUFFER)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Unsupported texture format
                          Mesa: User error: GL_INVALID_OPERATION in glEndConditionalRender()
                          Mesa: User error: GL_INVALID_ENUM in glGetIntegerIndexedv(pname=GL_FRAMEBUFFER)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          FBO error
                          FBO incomplete
                          Mesa: User error: GL_INVALID_OPERATION in glEndConditionalRender()
                          Mesa: User error: GL_INVALID_ENUM in glGetIntegerIndexedv(pname=GL_FRAMEBUFFER)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Unsupported texture format
                          Mesa: User error: GL_INVALID_OPERATION in glEndConditionalRender()
                          Mesa: User error: GL_INVALID_ENUM in glGetIntegerIndexedv(pname=GL_FRAMEBUFFER)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          FBO error
                          FBO incomplete
                          Mesa: User error: GL_INVALID_OPERATION in glEndConditionalRender()
                          Mesa: User error: GL_INVALID_ENUM in glGetIntegerIndexedv(pname=GL_FRAMEBUFFER)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Unsupported texture format
                          Mesa: User error: GL_INVALID_OPERATION in glEndConditionalRender()
                          Mesa: User error: GL_INVALID_ENUM in glGetIntegerIndexedv(pname=GL_FRAMEBUFFER)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          Mesa: User error: GL_INVALID_ENUM in glTexParameter(target)
                          FBO error
                          FBO incomplete
                          No RTT
                          [/CODE]

                          I hope that will help the developer working on the project.

                          Regards,
                          Nightcast2000

                          Comment


                          • #43
                            It looks like you're running swrast, the oldest software driver. Other than that, I can't say what's broken there.

                            Comment


                            • #44
                              Hi there curaga,
                              I think you are indeed right I was using the swrast driver for some reason..
                              Anyway, I got the latest commits from Mesa git and compiled mesa with:

                              Code:
                              ./autogen.sh --enable-debug --enable-xcb --enable-glx-tls --enable-asm --enable-xorg --with-dri-drivers=nouveau --with-gallium-drivers=nouveau,swrast --with-expat=/usr/lib  --disable-egl --enable-gbm --enable-gl-osmesa --enable-gallium-gbm --enable-shared-glapi
                              After I compiled it, I exported the parameters: export LD_LIBRARY_PATH=/home/steve/mesa/lib
                              export LIBGL_DRIVERS_PATH=/home/steve/mesa/lib/gallium
                              export LIBGL_DEBUG=verbose

                              Here is the output of glxinfo: http://pastebin.com/WSWMg71a

                              I then cd'ed over to mlaatest/32 and ran ./mlaatest again I did get some errors and the whole thing froze again. I took a picture with my mobile phone which should be attacted to this post.

                              I've tried to run the test again to redirect the output to a txt file,but all I got is this:
                              Code:
                              ATTENTION: default value of option vblank_mode overridden by environment.
                              ATTENTION: default value of option vblank_mode overridden by environment.
                              nvfx_screen_get_param:94 -  Warning: unknown PIPE_CAP 29
                              I hope this helps, I understand the nvfx driver is certainly not ready at all, but I hope the information I have provided will be useful.

                              Regards,
                              Nightcast2000

                              Comment


                              • #45
                                I think your experience is similar to Michael's - gf6 nouveau has been broken for him too for a while. PIPE_CAP 29 is SM3, which your card should support, but the driver isn't updated to know it yet.

                                Thanks for the glxinfo, looks like nvfx doesn't expose ARB_shader_texture_lod yet, even though your hw would support it. So even if the driver were stable, it wouldn't run the effect right now.

                                It's a bit sad that this at least for now locks out gf6 and gf7, the generations able to run it but on the nvfx driver. Fermi on the nvc0 driver is known to work.

                                Comment

                                Working...
                                X