Announcement

Collapse
No announcement yet.

Intel Driver Gets DRI2, KMS Approaching

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

  • Intel Driver Gets DRI2, KMS Approaching

    Phoronix: Intel Driver Gets DRI2, KMS Approaching

    Times are already exciting within the X.Org development community thanks to the Graphics Execution Manager entering Linux 2.6.28 and the release of X Server 1.6 quickly approaching, but still there's more good news to report this week. The Direct Rendering Infrastructure 2 support has entered the mainline xf86-video-intel driver and DRM mode-setting (commonly referred to as kernel mode-setting) has appeared in the drm-intel-next branch. Intel's driver has worked with DRI2 already, but now it's finally entering their mainline tree to appear in Intel's next driver release (xf86-video-intel 2.6)...

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

  • #2
    Yup! I pulled the code for this out of GIT just last night. Kind of unstable, though, as Compiz instantly freezes everything. Xfce4's compositor still works.

    Comment


    • #3
      Wow, that is great!
      January will be a fantastic month with GEM in 2.6.28, Xserver 1.6, Intel 2.6 and KDE 4.2!

      Comment


      • #4
        The dri2 introduction will improve the 3d performances of intel and ati drivers?
        Xwang

        Comment


        • #5
          Thanks for the news Phoronix. Don't think I don't think you guys do a good job.

          The dri2 introduction will improve the 3d performances of intel and ati drivers?
          Probably not right away. The X/Kernel hackers are going to concentrate more on getting it stable and such before they worry about performance issues too much... but what it is is a huge step in the right direction.

          All of this is essentially taking the X/Linux driver model and dragging it out of the mid-1990's era technology and into something that is much more capable and modern. A big change.

          This means that it opens up the way for stable composited desktops, nicer graphical experiences, support for programmable shaders, and better video acceleration.

          Comment


          • #6
            Originally posted by Xwang View Post
            The dri2 introduction will improve the 3d performances of intel and ati drivers?
            Xwang
            Look at the screenshot I posted above. Notice how the video being played is partially transparent over the GLXGears demo program. Until DRI2, this was not possible with X11's OpenGL renderer. The GLXGears program (along with other 3D programs) would always render ON TOP of whatever was being shown, given a 3D accelerated desktop. DRI2 introduces what's called "redirected direct rendering." This allows GL apps to be rendered to a different buffer, and then having that buffer treated like any other window being drawn.

            GEM is what will increase the performance of the drivers.

            Comment


            • #7
              does gallium3d use dri2? otherwise asked: if we ever have gallium3d, do we still need dri2 or is it obsolete by this date? (don't get it :/ )

              Comment


              • #8
                Finally

                Finally we will have the graphics subsystem that we were supposed to have, only a year later than originally planned. Hopefully everything will be in place when 2.6.29 lands, whenever that will be.

                Comment


                • #9
                  It's kind of sad that Windows Vista has had this ability since it launched.

                  Comment


                  • #10
                    Originally posted by Regenwald View Post
                    does gallium3d use dri2? otherwise asked: if we ever have gallium3d, do we still need dri2 or is it obsolete by this date? (don't get it :/ )


                    Well as you probably know the OpenGL acceleration for Linux is provided by 2 sets of drivers. There is a userspace part and then a kernel part.

                    The userspace part is the DRI driver.
                    The kernel part is the DRM driver.

                    The DRI drivers talk to the kernel DRM driver using the DRI protocol.

                    Originally DRI rendered OpenGL acceleration directly to the video card's video RAM. Which is why it's ugly on composited desktops.

                    So DRI2 was made to match the requirements of new hardware. It also renders graphics to offscreen buffers which then can be incorporated into your desktop via compositing, which makes everything much nicer looking.

                    In order to get DRI2 working more effectively we need advanced memory management facilities. That's what GEM gives us. GEM is part of DRM.

                    Also in order to get DRI2 working a new DRI2 interface with DRM was created.

                    Soo.... How does Gallium come into it?


                    Well a DRI-style driver is very complicated. It provides a lot of functionality, but only a small part of the functionality is really hardware-specific.

                    So Gallium is a modular DRI2 driver. It communicates with the in-kernel DRM via the DRI2 protocol and it tries to divide up the hardware-specific portions from the OpenGL stuff. The hardware-specific part is called 'Winsys' (I think).

                    By doing this then Gallium can be used to accelerate lots of different APIs instead of OpenGL. OpenCL... OpenRT... video playback acceleration. etc etc.
                    Last edited by drag; 12-07-2008, 05:20 AM.

                    Comment

                    Working...
                    X