Bug 116027

Summary: Playing video using Xv on VIA CLE266 results in bad image
Product: [Fedora] Fedora Reporter: Pekka Pietikäinen <pp>
Component: xorg-x11Assignee: Mike A. Harris <mharris>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: alan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-03-30 19:58:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
XFree86 log of "doesnt work"
diff of "doesnt work" and "works" log
XF86Config none

Description Pekka Pietikäinen 2004-02-17 18:19:07 UTC
Description of problem:

When using Xv and the new via driver, the colors are completely
off (e.g. black becomes light gray as if the brightness was
way too big, except the brightness setting in applications doesn't do
anything). Normal use is just fine, as is DRI.

A workaround is to start up X once with the driver from
http://www.shipmail.org/%7Ethomas/via/xfree43/epia7.2/, after
which the -57 driver works as expected as well. This is until the
machine is powered down, e.g. booting to a new kernel doesn't break
things. This would suggest there's a "Make Xv work" register that
isn't being set somewhere...

Adapter in questions (EPIA MII-10000 embedded thing using TV-out)

0000:01:00.0 VGA compatible controller: VIA Technologies, Inc. VT8623
[Apollo CLE266] integrated CastleRock graphics (rev 03) (prog-if 00 [VGA])
        Subsystem: VIA Technologies, Inc. VT8623 [Apollo CLE266]
integrated CastleRock graphics
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium
>TAbort- <TAbort- <MAbort- >SERR- <PERR-

Version-Release number of selected component (if applicable):


Comment 1 Mike A. Harris 2004-02-17 23:11:14 UTC
Thanks for testing PP.  I've cc'd _A_, however I believe he's busy
for another week or so, so it might be a few weeks before we can
poke at this.

Thanks for reporting the issue.

Comment 2 Mike A. Harris 2004-03-05 07:42:05 UTC
Could you attach your X server log and config file as well, in case
that comes in handy?

Alan:  Have you seen similar reports of this nature with the via

Comment 3 Pekka Pietikäinen 2004-03-06 08:57:00 UTC
Created attachment 98335 [details]
XFree86 log of "doesnt work"

Comment 4 Pekka Pietikäinen 2004-03-06 08:58:37 UTC
Created attachment 98336 [details]
diff of "doesnt work" and "works" log 

This is after starting up X once with the other driver and then
going back to the -62 via_drv.o

Comment 5 Pekka Pietikäinen 2004-03-06 08:58:58 UTC
Created attachment 98337 [details]

Comment 6 Pekka Pietikäinen 2004-03-30 19:58:20 UTC
Despite claims to the contrary (about shipping Alan instead of the
stock XFree86 via_drv.o), everything works perfectly with xorg-x11
even after
a poweroff.

Well, except glxinfo, which blows up just like it does with "nv" on my
other box, but you already knew that :-)

Comment 7 Mike A. Harris 2004-03-30 23:07:24 UTC
We are currently shipping the stock via driver in xorg-x11
temporarily, as I haven't updated the build to use Alan's driver

%ifarch %{ix86}
%define with_via_driver         0
%define with_via_driver         0

Once we've got Alan's driver back though, the problem might
possibly recur.  If it does, just reopen the report at that time,
and we'll have a look.

Thanks Pekka for the update.

Comment 8 Alan Cox 2004-03-30 23:20:57 UTC
Keep the xorg one, its my driver with later fixes FC1 XF4.3 hasnt got 8)

Comment 9 Mike A. Harris 2004-03-31 06:49:47 UTC
There does not appear to be a via DRI driver in the xorg tree however,
so we've lost DRI support.  If someone can confirm that your last
via-dri snapshot works with Mesa 5 that is included in Xorg X11,
I can reinclude it though.

For now, I'll just keep the Xorg via 2D driver as per your

Thanks for the update Alan.

Comment 10 Alan Cox 2004-03-31 12:51:21 UTC
Ok right the 2D driver in Xorg has all the DRI hooks, and is better
than the 2D driver block you have. The DRI driver I thought had been
merged but if not then the current via driver is on
unichrome.sourceforge.net (and those are its definitive maintainers
nowdays), so it would be a good idea to use that and for Xorg to adopt
that code (or persuade them to become Xorg maintainer for via 8))

3Dwise I'm hoping Test2 will boot on EPIA-M (test1 failed completely),
so that I can merge the kernel dri module for 2.6 from
unichrome.sf.net and check that is also working fine.