Bug 2711 - Via driver freezes console when compiled without XV extension
Summary: Via driver freezes console when compiled without XV extension
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Via (show other bugs)
Version: 6.8.0
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Thomas Hellström
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-12 12:38 UTC by Eric Binet
Modified: 2005-10-23 15:51 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Eric Binet 2005-03-12 12:38:24 UTC
On a VIA Epia CL-6000 running Gentoo Linux, I compiled X.org v 6.8.0 without the
XV extension. Then, the console froze when exiting X. I traced the cause of the
proglem to the file named via_video.c in the VIA driver directory.

On line 83, there if a #ifndef XvExtension ... then, 2 lines down, there is a
#else preprocessor directive. If XvExtension is not defined, then 3 functions
are missing from the driver :
1) viaRestoreVideo
2) viaSaveVideo
3) viaExitVideo

This _might_ be the cause of the console freeze.

Compiling with XV enabled removes the issue. I suggest that X should not start
when this problem occurs and should display a friendly error message. The
message could read : "Cannot run X using the via driver without XV enabled. You
must recompile X.org with XV enabled to use this driver. You can use the vesa or
vga driver in the meantime."
Comment 1 Luc Verhaegen 2005-03-18 16:13:39 UTC
Could you try the driver of unichrome.sf.net and provide a log of a run of it?
Comment 2 Eric Binet 2005-03-23 06:54:49 UTC
I'll try ... when I have a bit more time.

Is the "unichrome" driver becoming the official VIA driver? Has it been included
in 6.8.{1,2}?
Comment 3 Luc Verhaegen 2005-05-22 08:22:05 UTC
Unichrome release 30 is part of X.org cvs, but wasn't included in 6.8. There
hasn't been a new release yet.
Comment 4 Luc Verhaegen 2005-10-24 06:27:50 UTC
Breaks xf86-video-via since modular still lacks -DXvExtension.
See https://bugs.freedesktop.org/show_bug.cgi?id=4720
Comment 5 Thomas Hellström 2005-10-24 08:51:37 UTC
Trivial fix applied to CVS.

Pls check and reopen if needed.


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.