Bug 9878 - USEMGAHAL causes make error: 'MGAMODEINFO_FLATPANEL1' undeclared
Summary: USEMGAHAL causes make error: 'MGAMODEINFO_FLATPANEL1' undeclared
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/mga (show other bugs)
Version: 7.1 (2006.05)
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-04 23:34 UTC by TJ
Modified: 2007-02-05 23:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description TJ 2007-02-04 23:34:31 UTC
X Window System Version 7.1.1 on Ubuntu Edgy 6.10 (kernel 2.6.17-10)

Trying to compile xf86-video-mga-1.4.6.1 with USEMGAHAL defined.

mga_driver.c: In function 'MGAFillModeInfoStruct':
mga_driver.c:2739: error: 'MGAMODEINFO_FLATPANEL1' undeclared (first use in this function)
mga_driver.c:2739: error: (Each undeclared identifier is reported only once
mga_driver.c:2739: error: for each function it appears in.)
make[2]: *** [mga_driver.lo] Error 1
make[2]: Leaving directory `/usr/src/xf86-video-mga-1.4.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/xf86-video-mga-1.4.6.1'
make: *** [all] Error 2

Appears to be caused because binding.h is missing:

#define MGAMODEINFO_FLATPANEL1         (1L << 8) 
#define MGAMODEINFO_FLATPANEL2         (1L << 9)
Comment 1 Tilman Sauerbeck 2007-02-05 09:01:32 UTC
Won't fix.
Support for mga_hal will be removed in future releases anyway.
Comment 2 TJ 2007-02-05 11:15:51 UTC
Does that mean that the open-source driver will no longer support G450 dual-head display?

As I understand it, mga_hal_drv.so is required to run MergedFB or Xinerama on both heads.
Comment 3 Tilman Sauerbeck 2007-02-05 11:40:37 UTC
Nope, as the man page implicitly states, G450 dual head works without mga_hal.

mga_hal is only required to drive DVI output or mergedfb.
I will implement DVI support in the driver soonish. mergedfb support will likely follow.
Comment 4 TJ 2007-02-05 23:59:10 UTC
Thanks for the explanation.

I have to use MergedFB mode at present to get any kind of acceptable performance on the dual-heads, although none of the drivers I've tried so far are close to the performance in Windows 2003/XP, which is a shame.


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.