summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-05-21Remove deprecated includes from RANDR1.2 codeg200se-randr-v2Adam Jackson2-4/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Reject non-character-cell-sized modes on G200SE and friendsAdam Jackson1-0/+7
Originally submitted as a kms driver patch: http://lists.freedesktop.org/archives/dri-devel/2013-July/041857.html Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Fix CRTC sizing and mode validationAdam Jackson3-6/+17
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Clip shadowfb upload box to the screenAdam Jackson1-2/+11
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21On SE-A, if depth 24, prefer 24bppAdam Jackson1-1/+7
Because the thing is so ridiculously bandwidth-limited that it matters. Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Use classic-equivalent DPMS codeAdam Jackson1-0/+5
The RANDR port code does... something else. It looks well-intentioned but it breaks display setup on a couple of chips so it's wrong. Probably this is just crtc dpms vs. output dpms confusion. Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21randr: sync some more ER and WB bits from the legacy pathAdam Jackson1-0/+5
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21randr: Add G200SE display priority tweakAdam Jackson1-1/+62
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Force shadowfb for RANDR 1.2 for nowAdam Jackson1-6/+12
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21WIP: RANDR 1.2 skeletonAdam Jackson8-88/+1739
2014-05-21Remove old-school static rotationAdam Jackson4-256/+2
This should happen in RANDR 1.2 if at all. Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Remove unused fields from MGARecAdam Jackson3-11/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Stop pretending DDC1 is a thingAdam Jackson4-80/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Remove dead macroAdam Jackson1-2/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Remove yet another dead code path from HALectomyAdam Jackson3-21/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Drop unused VGA_DISABLE_IO codeAdam Jackson2-138/+2
This would probably be useful for a kernel driver that wanted to do vga-arb correctly though. Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Yet more HAL cleanupAdam Jackson2-18/+16
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Remove yet more HAL glueAdam Jackson2-42/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Undo some code duplicationAdam Jackson1-9/+1
2014-03-14fix a type in previous lockup in the mga driver fixMikulas Patocka1-1/+1
Oh, I had a typo in that patch - so please commit this to fix it. Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-03-14xf86-video-mga: fix a lockup in the mga driverMikulas Patocka1-3/+9
I've had a Xserver lockup in the mga driver, examining it with gdb showed this obviously broken loop: count = INREG(MGAREG_VCOUNT) + 2; while(INREG(MGAREG_VCOUNT) < count); It reads the line counter and waits until the counter advances by two. The cause of the lockup is this - if the kernel reschedules the Xorg process and lets it run in such a moment when INREG(MGAREG_VCOUNT) returns the maximum (or maximum minus 1) line count, the loop never exits. Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-03-14xf86-video-mga: set the pan_ctl registerMikulas Patocka2-0/+40
On my Matrox G550 most videomodes in Xorg didn't work. I found out that it works if Xorg pixel clock is similar to the pixel clock set on framebuffer console. Further analysis showed that the Linux framebuffer driver sets the pan_ctl register (the register 0xa2) according to the pixel clock, the Xorg driver doesn't set it. I copied the code to set the pan_ctl register from the Linux kernel to the Xorg driver, and most videomodes in Xorg work. The pan_ctl register is required for both analog and digital output. The pan_ctl register is saved and restored, this is required so that we restore text-mode screen or Linux framebuffer correctly. Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-12-05mga: bump release to 1.6.3xf86-video-mga-1.6.3Dave Airlie1-1/+1
2013-12-05mga: fix XAA runtimeDave Airlie3-4/+7
XAA->USE_XAA add USE_XAA. Tested-by: Avengence on #xorg-devel Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-11-19Remove mga_esc.c vestigal stubAlan Coopersmith2-14/+0
Previously contained MGA HAL code, was left an empty shell by the removal of USEMGAHAL in commit 94bbeb132c7eda. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2013-10-31mga: Use exaGetPixmapFirstPixel() instead of devPrivate.ptrTormod Volden1-1/+1
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2013-10-25Disable HW cursor by default on G200 server chipsEgbert Eich1-1/+21
Disable HW cursor by default on G200 server chips as these chips a re often used with a remote graphics link which cannot display the HW cursor. This can be overridden by a config option. Most desktops today use ARGB cursors anyhow which are not supported by this driver anyhow. Thus the performance penalty should be irrelevant. Signed-off-by: Egbert Eich <eich@freedesktop.org>
2013-10-25Restructure code to make it more readableEgbert Eich1-22/+21
With the previous structure it wasn't immediately clear when SecondCrtc and HWCursor were set to which value. Make the code more readable. Signed-off-by: Egbert Eich <eich@freedesktop.org>
2013-10-25Fix dual head crash without XAATormod Volden1-0/+2
https://launchpad.net/bugs/1180986 Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Robert Jacobs <robert.n.jacobs@gmail.com> Tested-by: Robert Jacobs <robert.n.jacobs@gmail.com>
2013-10-25Unbreak dual head (xinerama)Andy MacLean2-30/+92
This patch has been used in Debian, Ubuntu and Gentoo for years. https://bugs.freedesktop.org/show_bug.cgi?id=18472 https://launchpad.net/bugs/292214 https://bugs.gentoo.org/show_bug.cgi?id=265100 Signed-off-by: Andy MacLean <andy-ub1@themacleans.org.uk> Reviewed-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Robert Jacobs <robert.n.jacobs@gmail.com> Tested-by: Robert Jacobs <robert.n.jacobs@gmail.com>
2013-07-31Disable Linear Expansion on BEEgbert Eich2-0/+9
Linear Expansion doesn't work on BE as the bit order in a word is reversed. ScreenToScreenColorExpansion allows to adjust the bit order in a byte, still the bytes have the wrong order. Reviewed-by: <wharms@bfs.de> Signed-off-by: Egbert Eich <eich@freedesktop.org>
2013-01-12Restrict kernel driver matching to g200 server chipsJulien Cristau1-6/+16
Otherwise we might catch devices handled by matroxfb, not the mgag200 kms driver. Debian bug#697532 Reported-by: olafBuddenhagen@gmx.net Reviewed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Julien Cristau <jcristau@debian.org>
2012-09-28mga: bump release to 1.6.2xf86-video-mga-1.6.2Dave Airlie1-1/+1
2012-09-28mga: bring dri1 back to life.Dave Airlie4-22/+25
we need to at least setup the memory manager bits so dri1 clients get a backbuffer. this at least gets gears working again without XAA. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-26mga: add stub storm functions if not using XAADave Airlie1-0/+10
If we aren't using XAA just add stub storm init/sync functions. This lets the driver load yay. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-25Remove mibstore.hAdam Jackson1-4/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-07-17xf86-video-mga: bump to version 1.6.1xf86-video-mga-1.6.1Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-15mga: fix after XAA removalDave Airlie8-15/+49
Fix mga build after XAA removal. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-02mga: bump to 1.6.0xf86-video-mga-1.6.0Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-06mga: port to new compat API.Dave Airlie14-138/+228
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-25Add const qualifier to char *from in MGAdoDDCAlan Coopersmith1-1/+1
Only used to store arguments to pass as printf %s strings to xf86DrvMsg Fixes gcc warnings: mga_driver.c: In function 'MGAdoDDC': mga_driver.c:1338:7: warning: assignment discards qualifiers from pointer target type mga_driver.c:1343:11: warning: assignment discards qualifiers from pointer target type mga_driver.c:1351:8: warning: assignment discards qualifiers from pointer target type mga_driver.c:1359:8: warning: assignment discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-05-25Move PCI vendor/device id defines into mga.h instead of using xf86PciInfo.hAlan Coopersmith15-51/+23
Silences deprecation warnings from xf86PciInfo.h in current Xorg servers Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-05-17mga: don't bind to device if there is a kernel driverDave Airlie1-0/+9
this should only pick up KMS drivers and not old drm drivers. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-23xf86-video-mga 1.5.0xf86-video-mga-1.5.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-01-04Untangle XF86DRI from the driver-specific DRI definePeter Hutterer7-32/+36
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>