summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-01-04Untangle XF86DRI from the driver-specific DRI defineHEADmasterPeter Hutterer6-30/+34
XF86DRI is defined by xorg-server.h, so --disable-dri in the driver itself does exactly nothing other than not fill in the CFLAGS and thus stop the driver from compiling. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-01-03When we can't load the xaa or exa modules, use shadowfb insteadJulien Cristau1-21/+25
Signed-off-by: Julien Cristau <jcristau@debian.org>
2011-12-29Check MGAAllocAdaptor() for memory allocation failureAlan Coopersmith1-0/+6
If it couldn't allocate memory, don't attempt to write a bunch of values to the NULL pointer before returning it, but just pass the NULL along right away. Resolves parfait warnings of the form: Error: Null pointer dereference (CWE 476) Write to null pointer 'adapt' at line 322 of src/mga_video.c in function 'MGASetupImageVideoTexture'. Function 'MGAAllocAdaptor' may return constant 'NULL' at line 237, called at line 320. Null pointer introduced at line 237 in function 'MGAAllocAdaptor'. repeated for every line writing to the adapt pointer in each function. [ This bug was found by the Parfait 0.4.2 bug checking tool. For more information see http://labs.oracle.com/projects/parfait/ ] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
2011-12-07Add support for Video Memory greater then 8MChristian Toutant1-8/+48
Expand memory mapping of framebuffer from 8 to 16MB Fix segfault on redhat distibution Signed-off-by: Christian Toutant <ctoutant@matrox.com>
2011-10-29Include "xf86Modes.h" for xf86ModeBandwidthJeremy Huddleston1-0/+4
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-29Include <unistd.h> for usleepJeremy Huddleston1-0/+2
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-27Remove calls to xf86IsPc98()Matt Turner2-14/+2
Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-27Fix printf format specifier warningMatt Turner1-1/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-27Remove if(E != NULL) checks around free(E)Matt Turner4-36/+17
Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-27Remove xalloc/xcalloc/xrealloc/xfreeMatt Turner7-80/+80
Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-20Delete support for MGA's proprietary HAL: unifdef USEMGAHAL.Jamey Sharp6-1516/+0
This patch produced with: for f in `git grep -Fwl USEMGAHAL`; do unifdef -B -UUSEMGAHAL $f | sponge $f done Adam Jackson wrote: Hey, so, remember back in the dark ages when dualhead was this insanely wild differentiating feature? Matrox thought it was so special, in fact, that they hid most of the implementation of it (and a bunch of other stuff) in a binary-only blob called the HALlib. As you'd expect it was pretty much a cut-and-paste of the relevant Windows code, and then some open glue to keep it working; clientlx.c is that glue. I guess the theory was that if you don't tell people which registers to duplicate to implement a second pipe in their own hardware, they won't figure it out? A pretty eyeroll-worthy idea even at the time, and definitely not something we should be condoning anymore. Kill it with fire, but while you're at it, untangle the hideous mess of MGA_HAL() macros too. Signed-off-by: Jamey Sharp <jamey@minilop.net> Cc: Adam Jackson <ajax@redhat.com>
2011-09-20Nothing uses clientlx.c, so delete it.Jamey Sharp4-920/+0
Adam Jackson wrote: Hey, so, remember back in the dark ages when dualhead was this insanely wild differentiating feature? Matrox thought it was so special, in fact, that they hid most of the implementation of it (and a bunch of other stuff) in a binary-only blob called the HALlib. As you'd expect it was pretty much a cut-and-paste of the relevant Windows code, and then some open glue to keep it working; clientlx.c is that glue. I guess the theory was that if you don't tell people which registers to duplicate to implement a second pipe in their own hardware, they won't figure it out? A pretty eyeroll-worthy idea even at the time, and definitely not something we should be condoning anymore. Kill it with fire ... Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2011-09-20Reset tagfifo for renesas.Christian Toutant2-0/+25
For renesas, we need to reset tagfifo after a mode switch. Signed-off-by: Christian Toutant <ctoutant@matrox.com>
2011-08-03Added support for G200SE Pilot3Christian Toutant1-14/+80
Optimize use of bandwidth and increase maximum resolution to 1920x1200 Signed-off-by: Christian Toutant <ctoutant@matrox.com>
2011-06-22Don't include xf86Priv.hAdam Jackson1-1/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-12-17added support for G200ER.Yannick Heneault6-22/+222
2010-10-14Don't allow the config file to override BIOS locationAdam Jackson1-15/+8
Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-10-06Purge cvs tags.Jesse Adkins10-22/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-08-25modified G200SE conditionnal statement about revision register for products ↵Yannick Heneault1-3/+3
compatibility.
2010-07-22adjusted max bandwith and max pitch values for G200SEYannick Heneault1-7/+2
2010-03-24Changed probe_size value to detect up to 16Megs of video ram on G200eV.Yannick Heneault1-1/+1
2010-02-11Added support for G200EHYannick Heneault6-3/+206
2009-11-10Removed DDC1 support for G200eW.Yannick Heneault1-3/+8
2009-08-19updated G200eW PLL programming sequence.Yannick Heneault1-20/+1
2009-07-28mga: change to using ABI version checkDave Airlie1-1/+1
2009-07-28mga: update for resources/RAC API removalDave Airlie7-23/+25
2009-05-28Remove useless loader symbol lists.Adam Jackson1-228/+5
2009-05-06Do E-EDID if built against a server that supports it.Adam Jackson1-0/+5
2009-05-06Normalize DDC for the second head.Adam Jackson1-106/+98
The exit path wasn't symmetric with the exit path for the first head.
2009-05-06Remove redundant MGAuseI2C macroAdam Jackson1-10/+0
2009-04-27G200SE: Only force 16bpp on low-memory cardsAdam Jackson1-1/+1
2009-04-27Move device ID and memory sizing much earlier in setupAdam Jackson1-129/+126
2009-04-27Remove a leftover from overlay supportAdam Jackson1-12/+2
2009-04-21Fixed bad vga access in memory count routine.Yannick Heneault1-1/+1
2009-04-21Force pitch of 1024 for G200SE Pilot1 when edid is used as modeline.Yannick Heneault1-1/+9
2009-04-16Prevent MergedFB setups from crashing.Stefan Dirsch1-2/+3
Second time mga_read_and_process_bios() is called pMga->chip_attribs is a NULL pointer for some reason. (#21022)
2009-03-31Fixed G200SE PLL selection routine of m,n,p.Yannick Heneault1-31/+56
2009-03-30fixed memory count rountine for G200eW to detect up to 16Megs on X server ↵Yannick Heneault1-2/+1
without libpciaccess.
2009-03-26Modified memory count rountine for G200eW to detect up to 16Megs.Yannick Heneault1-0/+32
2009-03-11Fixed bad access issues and ddc1 implementation for IP core.Yannick Heneault2-17/+24
Fixed a bug in PLL programming sequence for G200eW/G200eV where a register IO offset was used instead of a memory offset. Removed clock selection toggling in PLL programming sequence for G200eW. Fixed ddc1 protocol to support correct I/O lines according to chip attribute. Fixed a bug in CRTC2 programming seqence where a register IO offset was used instead of a memory offset.
2009-03-06Fall back to software for unsupported repeat modesThomas Jaeger1-0/+5
[anholt: dropped unneded ->repeat check -- it's a misguided compat field for drivers from before repeatType existed]
2009-01-21Updated PLL algorithm for G200eW.Yannick Heneault1-95/+178
Changed the m,n,p selection for G200eW and programming sequence.
2008-11-20Fixed PLL m,n,p selection for G200eW to respect byte granularity.Yannick Heneault3-6/+22
Renamed G200 eW Winbond ID string to Nuvoton. Added EV suffix to G200 Maxim. Blocked double scan mode for G200 eW. Fixed memory bandwidth limitation for G200eW to 318.77 Mhz. Added a workaround (blit 1x1 with rop=xor) to fix the black screen problem for G200eW.
2008-10-01fixed winbond/nuvoton min pll clock to correct value (18.75Mhz).Yannick Heneault1-0/+3
2008-06-30Bug #16545: Add G200WB support.Yannick Henault6-16/+335
2008-06-23Death to RCS tags.Adam Jackson15-30/+0
2008-06-23Bug #15836: Fix DDC on G200SE.Yannick Henault2-6/+3
2008-06-09G200EV: Enable support for G200EVIan Romanick6-12/+197
2008-05-30I2C: Second (and final) round of clean-upsIan Romanick1-40/+32
2008-05-30I2C: First round of clean-upsIan Romanick1-100/+58