Re: Intel 82852 & Xv

2004-04-27 Thread Marc Aurele La France
On Wed, 14 Apr 2004, Mark Cuss wrote:

> > How does commenting out the "1 || " part affect this problem?

> Just removing the "1 ||" as you suggested has the same result as removing
> the whole block as I did - the video overlays still function correctly.

I have just committed this change.

Marc.

+--+---+
|  Marc Aurele La France   |  work:   1-780-492-9310   |
|  Computing and Network Services  |  fax:1-780-492-1729   |
|  352 General Services Building   |  email:  [EMAIL PROTECTED]  |
|  University of Alberta   +---+
|  Edmonton, Alberta   |   |
|  T6G 2H1 | Standard disclaimers apply|
|  CANADA  |   |
+--+---+
XFree86 developer and VP.  ATI driver and X server internals.

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-14 Thread Mark Cuss
> How does commenting out the "1 || " part affect this problem?

Just removing the "1 ||" as you suggested has the same result as removing
the whole block as I did - the video overlays still function correctly.

Thanks!

Mark


> Marc.
>
> +--+---+
> |  Marc Aurele La France   |  work:   1-780-492-9310   |
> |  Computing and Network Services  |  fax:1-780-492-1729   |
> |  352 General Services Building   |  email:  [EMAIL PROTECTED]  |
> |  University of Alberta   +---+
> |  Edmonton, Alberta   |   |
> |  T6G 2H1 | Standard disclaimers apply|
> |  CANADA  |   |
> +--+---+
> XFree86 developer and VP.  ATI driver and X server internals.
>
> ___
> Devel mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/devel
>


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-13 Thread Marc Aurele La France
On Tue, 13 Apr 2004, Mark Cuss wrote:

> Okay - I've done some digging and found the problem...

> To recap, our application decodes MPEG-2 video into a video window and draws
> overlays on top of the video.  The problem was that the two seemed to
> "fight", causing the overlays to blink every time the video was refreshed
> (ie - 30 Hz or so)

> The following code is from the 4.4.0 X server source, i830_video.c, line
> 1416:
>   /* update cliplist */
>/*
> * XXX Always draw the key.  LinDVD seems to fill the window background
> * with a colour different from the key.  This works around that.
> */
>if (1 || !REGION_EQUAL(pScreen, &pPriv->clip, clipBoxes)) {
>   REGION_COPY(pScreen, &pPriv->clip, clipBoxes);
>   xf86XVFillKeyHelper(pScreen, pPriv->colorKey, clipBoxes);
>}

> This code seems to be the offender...  If I comment out the whole if block,
> things work as they should - the video is drawn into the YUV buffer, the
> overlays are drawn into the RGB buffer, and things blit together OK.

> I'm by no means a driver expert, but by the looks of the comments above this
> block of code, it looks like there was a bug in LinDVD that was worked
> around in the driver...

> Now - another somewhat related problem.  When the MPEG-2 software is
> decoding and displaying video, at times video is drawn outside the video
> application in random blocks on the screen (ie - in terminal windows, on the
> desktop, etc.)  This seems to happen whether the above mentioned block is
> commented out or not, so I don't think I introduced the bug.

> Does anyone have any suggestions?

How does commenting out the "1 || " part affect this problem?

Marc.

+--+---+
|  Marc Aurele La France   |  work:   1-780-492-9310   |
|  Computing and Network Services  |  fax:1-780-492-1729   |
|  352 General Services Building   |  email:  [EMAIL PROTECTED]  |
|  University of Alberta   +---+
|  Edmonton, Alberta   |   |
|  T6G 2H1 | Standard disclaimers apply|
|  CANADA  |   |
+--+---+
XFree86 developer and VP.  ATI driver and X server internals.

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-13 Thread Mark Cuss
Okay - I've done some digging and found the problem...

To recap, our application decodes MPEG-2 video into a video window and draws
overlays on top of the video.  The problem was that the two seemed to
"fight", causing the overlays to blink every time the video was refreshed
(ie - 30 Hz or so)

The following code is from the 4.4.0 X server source, i830_video.c, line
1416:
  /* update cliplist */
   /*
* XXX Always draw the key.  LinDVD seems to fill the window background
* with a colour different from the key.  This works around that.
*/
   if (1 || !REGION_EQUAL(pScreen, &pPriv->clip, clipBoxes)) {
  REGION_COPY(pScreen, &pPriv->clip, clipBoxes);
  xf86XVFillKeyHelper(pScreen, pPriv->colorKey, clipBoxes);
   }

This code seems to be the offender...  If I comment out the whole if block,
things work as they should - the video is drawn into the YUV buffer, the
overlays are drawn into the RGB buffer, and things blit together OK.

I'm by no means a driver expert, but by the looks of the comments above this
block of code, it looks like there was a bug in LinDVD that was worked
around in the driver...

Now - another somewhat related problem.  When the MPEG-2 software is
decoding and displaying video, at times video is drawn outside the video
application in random blocks on the screen (ie - in terminal windows, on the
desktop, etc.)  This seems to happen whether the above mentioned block is
commented out or not, so I don't think I introduced the bug.

Does anyone have any suggestions?

Thanks
Mark

- Original Message - 
From: "Mark Cuss" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 1:24 PM
Subject: Re: Intel 82852 & Xv


> Ok - thanks.  I'll have a look.
>
> Mark
> - Original Message - 
> From: "Alan Hourihane" <[EMAIL PROTECTED]>
> To: "Mark Cuss" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 07, 2004 1:22 PM
> Subject: Re: Intel 82852 & Xv
>
>
> > On Wed, Apr 07, 2004 at 01:06:55PM -0600, Mark Cuss wrote:
> > > Hello again
> > >
> > > I have an application running on this machine that decodes MPEG-2 into
a
> > > window and then draws overlays on top of the video using a colorkey.
> This
> > > works on other hardware combinations (ie - an Intel 810, anything
> nVidia,
> > > etc), but on this machine the XvPutImage that performed by the MPEG-2
> > > encoder and the draw commands for the overlays fight with each other,
> > > causing a blinking effect...  I've seen this before on the SMI chip,
and
> one
> > > of my co-workers modified the X server to fix it for me - it had
> something
> > > to do with the X server and the driver not negotiating the YUV format
> > > correctly - something about the YUV data not being drawn into the
> overlay
> > > buffer - sorry - I just can't remember the nitty gritty details.
> > >
> > > Does anybody know if and how this problem could be addressed?
> >
> > Jump into the driver Mark, and take a look.
> >
> > Without nitty gritty details and sample applications and videos there
> > may not be a lot others can do.
> >
> > Alan.
> >
>
>
> ___
> Devel mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/devel
>


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-07 Thread Mark Cuss
Ok - thanks.  I'll have a look.

Mark
- Original Message - 
From: "Alan Hourihane" <[EMAIL PROTECTED]>
To: "Mark Cuss" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 1:22 PM
Subject: Re: Intel 82852 & Xv


> On Wed, Apr 07, 2004 at 01:06:55PM -0600, Mark Cuss wrote:
> > Hello again
> >
> > I have an application running on this machine that decodes MPEG-2 into a
> > window and then draws overlays on top of the video using a colorkey.
This
> > works on other hardware combinations (ie - an Intel 810, anything
nVidia,
> > etc), but on this machine the XvPutImage that performed by the MPEG-2
> > encoder and the draw commands for the overlays fight with each other,
> > causing a blinking effect...  I've seen this before on the SMI chip, and
one
> > of my co-workers modified the X server to fix it for me - it had
something
> > to do with the X server and the driver not negotiating the YUV format
> > correctly - something about the YUV data not being drawn into the
overlay
> > buffer - sorry - I just can't remember the nitty gritty details.
> >
> > Does anybody know if and how this problem could be addressed?
>
> Jump into the driver Mark, and take a look.
>
> Without nitty gritty details and sample applications and videos there
> may not be a lot others can do.
>
> Alan.
>


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-07 Thread Alan Hourihane
On Wed, Apr 07, 2004 at 01:06:55PM -0600, Mark Cuss wrote:
> Hello again
> 
> I have an application running on this machine that decodes MPEG-2 into a
> window and then draws overlays on top of the video using a colorkey.  This
> works on other hardware combinations (ie - an Intel 810, anything nVidia,
> etc), but on this machine the XvPutImage that performed by the MPEG-2
> encoder and the draw commands for the overlays fight with each other,
> causing a blinking effect...  I've seen this before on the SMI chip, and one
> of my co-workers modified the X server to fix it for me - it had something
> to do with the X server and the driver not negotiating the YUV format
> correctly - something about the YUV data not being drawn into the overlay
> buffer - sorry - I just can't remember the nitty gritty details.
> 
> Does anybody know if and how this problem could be addressed?

Jump into the driver Mark, and take a look.

Without nitty gritty details and sample applications and videos there
may not be a lot others can do.

Alan.
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-07 Thread Mark Cuss
Hello again

I have an application running on this machine that decodes MPEG-2 into a
window and then draws overlays on top of the video using a colorkey.  This
works on other hardware combinations (ie - an Intel 810, anything nVidia,
etc), but on this machine the XvPutImage that performed by the MPEG-2
encoder and the draw commands for the overlays fight with each other,
causing a blinking effect...  I've seen this before on the SMI chip, and one
of my co-workers modified the X server to fix it for me - it had something
to do with the X server and the driver not negotiating the YUV format
correctly - something about the YUV data not being drawn into the overlay
buffer - sorry - I just can't remember the nitty gritty details.

Does anybody know if and how this problem could be addressed?

Thanks
Mark

- Original Message - 
From: "Alan Hourihane" <[EMAIL PROTECTED]>
To: "Mark Cuss" <[EMAIL PROTECTED]>
Cc: "X Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 9:42 AM
Subject: Re: Intel 82852 & Xv


> Mark,
>
> Basically, it looks like you are out of video memory because you have set
> VideoRAM to 16384 in your config file.
>
> Bump that up to 32768, and try again.
>
> Alan.
>
> On Wed, Apr 07, 2004 at 09:37:40AM -0600, Mark Cuss wrote:
> > Hi Alan
> >
> > The log file is attached.
> >
> > Mark
> >
> > - Original Message - 
> > From: "Alan Hourihane" <[EMAIL PROTECTED]>
> > To: "Mark Cuss" <[EMAIL PROTECTED]>
> > Cc: "X Developers List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 07, 2004 9:33 AM
> > Subject: Re: Intel 82852 & Xv
> >
> >
> > > On Wed, Apr 07, 2004 at 09:28:39AM -0600, Mark Cuss wrote:
> > > > Hi All
> > > >
> > > > I have a laptop with an Intel 82852/855GM Integrated graphics
chipset.
> > The
> > > > machine is running RedHat 9 with the new 4.4.0 X Server.  I'd like
to
> > use
> > > > the XVideo extension on the machine, but xvinfo reports that no
adaptors
> > are
> > > > present.  The X server log file says:
> > > > "I810: Disabling Xv because the overlay register buffer
allocation
> > > > failed"
> > > >
> > > > So, this looks like it may be the problem, but I'm no X server
expert
> > when
> > > > it comes time to solve it...  Is it possible to make Xv work on this
> > > > chipset?  If anyone has any ideas I'd appreciate them...
> > >
> > > Mark,
> > >
> > > It'd be good to get your log file from /var/log/XFree86.0.log to see
> > > why the allocation failed.
> > >
> > > Alan.
> > >
>
>
> ___
> Devel mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/devel
>


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-07 Thread Mark Cuss
Thanks very much Alan - that did the trick...  I forgot that the Intel chips
use system RAM and that the value can be changed...

Thanks again!

Mark

- Original Message - 
From: "Alan Hourihane" <[EMAIL PROTECTED]>
To: "Mark Cuss" <[EMAIL PROTECTED]>
Cc: "X Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 9:42 AM
Subject: Re: Intel 82852 & Xv


> Mark,
>
> Basically, it looks like you are out of video memory because you have set
> VideoRAM to 16384 in your config file.
>
> Bump that up to 32768, and try again.
>
> Alan.
>
> On Wed, Apr 07, 2004 at 09:37:40AM -0600, Mark Cuss wrote:
> > Hi Alan
> >
> > The log file is attached.
> >
> > Mark
> >
> > - Original Message - 
> > From: "Alan Hourihane" <[EMAIL PROTECTED]>
> > To: "Mark Cuss" <[EMAIL PROTECTED]>
> > Cc: "X Developers List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 07, 2004 9:33 AM
> > Subject: Re: Intel 82852 & Xv
> >
> >
> > > On Wed, Apr 07, 2004 at 09:28:39AM -0600, Mark Cuss wrote:
> > > > Hi All
> > > >
> > > > I have a laptop with an Intel 82852/855GM Integrated graphics
chipset.
> > The
> > > > machine is running RedHat 9 with the new 4.4.0 X Server.  I'd like
to
> > use
> > > > the XVideo extension on the machine, but xvinfo reports that no
adaptors
> > are
> > > > present.  The X server log file says:
> > > > "I810: Disabling Xv because the overlay register buffer
allocation
> > > > failed"
> > > >
> > > > So, this looks like it may be the problem, but I'm no X server
expert
> > when
> > > > it comes time to solve it...  Is it possible to make Xv work on this
> > > > chipset?  If anyone has any ideas I'd appreciate them...
> > >
> > > Mark,
> > >
> > > It'd be good to get your log file from /var/log/XFree86.0.log to see
> > > why the allocation failed.
> > >
> > > Alan.
> > >
>
>
> ___
> Devel mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/devel
>


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-07 Thread Alan Hourihane
Mark,

Basically, it looks like you are out of video memory because you have set 
VideoRAM to 16384 in your config file.

Bump that up to 32768, and try again.

Alan.

On Wed, Apr 07, 2004 at 09:37:40AM -0600, Mark Cuss wrote:
> Hi Alan
> 
> The log file is attached.
> 
> Mark
> 
> - Original Message - 
> From: "Alan Hourihane" <[EMAIL PROTECTED]>
> To: "Mark Cuss" <[EMAIL PROTECTED]>
> Cc: "X Developers List" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 07, 2004 9:33 AM
> Subject: Re: Intel 82852 & Xv
> 
> 
> > On Wed, Apr 07, 2004 at 09:28:39AM -0600, Mark Cuss wrote:
> > > Hi All
> > >
> > > I have a laptop with an Intel 82852/855GM Integrated graphics chipset.
> The
> > > machine is running RedHat 9 with the new 4.4.0 X Server.  I'd like to
> use
> > > the XVideo extension on the machine, but xvinfo reports that no adaptors
> are
> > > present.  The X server log file says:
> > > "I810: Disabling Xv because the overlay register buffer allocation
> > > failed"
> > >
> > > So, this looks like it may be the problem, but I'm no X server expert
> when
> > > it comes time to solve it...  Is it possible to make Xv work on this
> > > chipset?  If anyone has any ideas I'd appreciate them...
> >
> > Mark,
> >
> > It'd be good to get your log file from /var/log/XFree86.0.log to see
> > why the allocation failed.
> >
> > Alan.
> >


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Intel 82852 & Xv

2004-04-07 Thread Mark Cuss
Hi Alan

The log file is attached.

Mark

- Original Message - 
From: "Alan Hourihane" <[EMAIL PROTECTED]>
To: "Mark Cuss" <[EMAIL PROTECTED]>
Cc: "X Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 9:33 AM
Subject: Re: Intel 82852 & Xv


> On Wed, Apr 07, 2004 at 09:28:39AM -0600, Mark Cuss wrote:
> > Hi All
> >
> > I have a laptop with an Intel 82852/855GM Integrated graphics chipset.
The
> > machine is running RedHat 9 with the new 4.4.0 X Server.  I'd like to
use
> > the XVideo extension on the machine, but xvinfo reports that no adaptors
are
> > present.  The X server log file says:
> > "I810: Disabling Xv because the overlay register buffer allocation
> > failed"
> >
> > So, this looks like it may be the problem, but I'm no X server expert
when
> > it comes time to solve it...  Is it possible to make Xv work on this
> > chipset?  If anyone has any ideas I'd appreciate them...
>
> Mark,
>
> It'd be good to get your log file from /var/log/XFree86.0.log to see
> why the allocation failed.
>
> Alan.
>


XFree86.0.log
Description: Binary data


Re: Intel 82852 & Xv

2004-04-07 Thread Alan Hourihane
On Wed, Apr 07, 2004 at 09:28:39AM -0600, Mark Cuss wrote:
> Hi All
> 
> I have a laptop with an Intel 82852/855GM Integrated graphics chipset.  The
> machine is running RedHat 9 with the new 4.4.0 X Server.  I'd like to use
> the XVideo extension on the machine, but xvinfo reports that no adaptors are
> present.  The X server log file says:
> "I810: Disabling Xv because the overlay register buffer allocation
> failed"
> 
> So, this looks like it may be the problem, but I'm no X server expert when
> it comes time to solve it...  Is it possible to make Xv work on this
> chipset?  If anyone has any ideas I'd appreciate them...

Mark,

It'd be good to get your log file from /var/log/XFree86.0.log to see
why the allocation failed.

Alan.
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Intel 82852 & Xv

2004-04-07 Thread Mark Cuss
Hi All

I have a laptop with an Intel 82852/855GM Integrated graphics chipset.  The
machine is running RedHat 9 with the new 4.4.0 X Server.  I'd like to use
the XVideo extension on the machine, but xvinfo reports that no adaptors are
present.  The X server log file says:
"I810: Disabling Xv because the overlay register buffer allocation
failed"

So, this looks like it may be the problem, but I'm no X server expert when
it comes time to solve it...  Is it possible to make Xv work on this
chipset?  If anyone has any ideas I'd appreciate them...

Thanks in Advance

Mark

Mark Cuss, B. Sc.
Real Time Systems Analyst
System Administrator
CDL Systems Ltd
Suite 230
3553 - 31 Street NW
Calgary, AB, Canada

Phone: 403 289 1733 ext 226
Fax: 403 282 1238
www.cdlsystems.com


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel