Hardware overlay on G35 too?

Thomas Fritzsche tf at noto.de
Mon Feb 25 21:56:34 PST 2008


Hi Tino and Mikko,

nice to hear the you have success with hw overlay on G35!

I guess the Ubuntu patch (enable overlay except for i695) is a good
starting point:
( http://launchpadlibrarian.net/9337645/xserver-xorg-video-intel_2.1.1-0ubuntu3.debdiff
)
(the deb-src package contains the full patch)

The critical part of the patch seems to be:
++    if (pScrn->bitsPerPixel >= 16 && IS_I965G(pI830) &&
++	!(!IS_I965G(pI830) && pScrn->displayWidth > 2048))

So actually the texture adaptor doesn't get created any more except
for i965, thus overlay get "default" xv-adaptor. It looks like this
can be easy adjusted once i965 hw overlay works. I guess it's possible
to adjust the coding in this function, that even both adaptors are
available. Isn't it?

Cheers,
 Thomas

On Tue, Feb 26, 2008 at 1:47 AM, Tino Keitel <tino.keitel+xorg at tikei.de> wrote:
> On Mon, Feb 25, 2008 at 17:05:47 +0200, Mikko Mäkinen wrote:
>  > Hi,
>  >
>  > I modified the second patch from Maxim Levitsky as follows:
>  >
>  > #define HW_HAS_OVERLAY(pI810) (!IS_I965G(pI810) || DEVICE_ID(pI810->PciInfo) == PCI_CHIP_G35_G)
>  >
>  > Now, xvinfo gives me:
>  >
>  >       Adaptor #1: "Intel(R) Video Overlay"
>  >         number of ports: 1
>  >         port base: 108
>  >       ...
>
>  Now it would be nice if the driver could be configured so that all apps
>  use the video overlay port per default (Adaptor #0).
>
>  Regards,
>  Tino
>
>
> _______________________________________________
>  xorg mailing list
>  xorg at lists.freedesktop.org
>  http://lists.freedesktop.org/mailman/listinfo/xorg
>


More information about the xorg mailing list