Bug 9931 - XV broken if pageflip enabled
Summary: XV broken if pageflip enabled
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other All
: medium minor
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
: 9845 11182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-09 11:47 UTC by Lukas Hejtmanek
Modified: 2010-12-03 14:16 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments
my xorg.conf (3.94 KB, text/plain)
2007-02-26 13:45 UTC, Lukas Hejtmanek
no flags Details
Xorg log (63.43 KB, text/plain)
2007-02-26 13:47 UTC, Lukas Hejtmanek
no flags Details
Partial fix (534 bytes, patch)
2007-03-23 09:26 UTC, Michel Dänzer
no flags Details | Splinter Review

Description Lukas Hejtmanek 2007-02-09 11:47:10 UTC
I've encoutered issues with XVideo extension in modesetting version of the
driver, in particular, textured video. Sometimes it displays
http://www.fi.muni.cz/~xhejtman/img_0613.jpg
instead of
http://www.fi.muni.cz/~xhejtman/img_0614.jpg

I have i915GM chipset.

I've noticed, that displaying another video fixes the issue.

This is info about wrongly played movie:
VO: [xv] 320x240 => 320x240 Planar YV12

And this video fixes the issue:
VO: [xv] 720x576 => 720x576 Planar YV12
Comment 1 Eric Anholt 2007-02-26 13:04:05 UTC
If you see this happen with the current modesetting driver, please attach a
config and log.  However, my guess (tiling issues) didn't bear out when I
convinced X to tile the front buffer, so I don't know what's going on.  I
suppose having a copy of the video (and it looks like you're using mplayer?)
could help in reproducing it, if possible.
Comment 2 Lukas Hejtmanek 2007-02-26 13:45:37 UTC
Created attachment 8858 [details]
my xorg.conf
Comment 3 Lukas Hejtmanek 2007-02-26 13:47:20 UTC
Created attachment 8859 [details]
Xorg log
Comment 4 Lukas Hejtmanek 2007-02-26 13:49:32 UTC
Current modesetting did not help. However, maybe important thing, I'm using XAA for acceleration. If I use EXA, XV seems to be OK.

Btw, legacy XV video overlay does not work either. Only color key is shown.
Comment 5 Lukas Hejtmanek 2007-02-26 15:48:19 UTC
Using XAA, it has started to occur regularly at X server startup, any first video I try to play results in garbage. If I then play another video of larger size than the second one is OK.
Comment 6 Eric Anholt 2007-03-06 16:22:05 UTC
Fixed in xserver.  That was no fun to debug.
Comment 7 Lukas Hejtmanek 2007-03-22 12:06:19 UTC
Similar display corruption is again present in the current Xserver & intel driver.
Comment 8 Lukas Hejtmanek 2007-03-22 12:57:01 UTC
It seems to be related to pageflip option. If pageflipping is not enabled, textured video is OK.
Comment 9 Michel Dänzer 2007-03-23 09:26:50 UTC
Created attachment 9270 [details] [review]
Partial fix

This fixes it with Option "LinearAlloc" here, but not without. It does look tiling related, my guess would be the tiling interferes with the YUV data in offscreen memory somehow.
Comment 10 Michel Dänzer 2007-03-23 09:29:58 UTC
At any rate, something that only happens with an option that defaults to off shouldn't block the release.
Comment 11 wbrana 2007-04-08 06:50:05 UTC
I can also see video window corruption with PageFlip and last release candidates.
Comment 12 wbrana 2007-04-08 07:04:12 UTC
With EXA video window isn't corrupted, but creating new regular window is causing
whole screen corruption.
Comment 13 wbrana 2007-04-08 08:08:24 UTC
"Partial fix" and Option "LinearAlloc" "8160" seems to remove corruption.
Comment 14 wbrana 2007-04-08 08:25:35 UTC
Option "LinearAlloc" "8160" is causing incomplete video image.
Option "LinearAlloc" "16384" is better.
Comment 15 wbrana 2007-04-21 04:36:05 UTC
Bug also exists in xf86-video-intel 2.0.0.
Option "LinearAlloc" doesn't exist.
Partial fix is unusable:
patching file src/i830_driver.c
Hunk #1 FAILED at 2532.
1 out of 1 hunk FAILED -- saving rejects to file src/i830_driver.c.rej
Comment 16 cheryl 2007-04-21 09:26:23 UTC
Bug persists in current git as of 04-20-2007.  All video is corrupted.

Comment 17 zy 2007-06-07 01:41:16 UTC
*** Bug 11182 has been marked as a duplicate of this bug. ***
Comment 18 Gordon Jin 2007-08-13 23:48:07 UTC
The problem seems to be pageflip related, after Eric's fix in comment#6.
The intel.man says pageflip is unstable so not recommending to use at this point.
Comment 19 Gordon Jin 2007-08-13 23:49:27 UTC
*** Bug 11182 has been marked as a duplicate of this bug. ***
Comment 20 Eric Anholt 2007-08-17 19:47:48 UTC
Should be fixed in today's git.
Comment 21 Matt Turner 2010-12-03 14:16:11 UTC
*** Bug 9845 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.