summaryrefslogtreecommitdiff
path: root/hw/xfree86
AgeCommit message (Collapse)AuthorFilesLines
2014-10-27dix: Always store GC client clip as a region (v2)Adam Jackson1-1/+1
Again, this changes FixesCreateRegionFromGC to throw BadMatch when fed a GC with no client clip. v2: Fix Xnest and some variable names (Keith) Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-10-27mi: Fold mifpolycon.c into miarc.cAdam Jackson1-1/+0
Also put mifpoly.h on a diet, and stop including it from places that don't need it. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-10-27mi: Fold mispans.c into miwideline.cAdam Jackson1-1/+0
Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-10-27mi: Unexport wide line detailsAdam Jackson1-1/+0
XAA wanted these, once upon a time, but that's gone now. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-10-09Merge remote-tracking branch 'ajax/dead-code'Keith Packard2-80/+48
2014-10-09Merge remote-tracking branch 'ajax/mi-cleanup'Keith Packard3-7/+6
2014-10-09dix: Drop the third argument from WindowExposuresProcPtrAdam Jackson3-7/+6
A careful read shows that it was always NULL. It hasn't always been; as the DDX spec indicates, it was the "occluded region that has backing store", but since that backing store code is long gone, we can nuke it. mi{,Overlay}WindowExposures get slightly simpler here, and will get even simpler in just a moment. Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-10-09modesetting: Add support for rendering using glamor.Eric Anholt4-11/+95
By default modesetting now tries to enable X acceleration using glamor, but falls back to normal shadowfb if GL fails to initialize. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-10-09modesetting: Deduplicate some scrn setup.Eric Anholt1-33/+22
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-10-09modesetting: Fix some weird formatting after x-indent-all.sh.Eric Anholt1-2/+5
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-10-09modesetting: Run x-indent-all.sh.Eric Anholt4-1510/+1586
As I was editing code, the top-level .dir-locals.el was making my new stuff conflict with the existing style. Make it consistently use the xorg style, instead. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-10-08xfree86: Remove some can't-happen printf from xf86CreateRootWindowAdam Jackson1-15/+0
Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-10-08loader: Remove some baklava codeAdam Jackson1-65/+48
Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-10-02xfree86: Remove remaining return FALSE from configServerFlagsKeith Packard1-1/+1
Remove the error return path from the FLAG_PIXMAP path and leave the default value in place. There's no point skipping the rest of this function. Signed-off-by: Keith Packard <keithp@keithp.com>
2014-10-02Merge remote-tracking branch 'ajax/dead-code'Keith Packard20-649/+38
2014-10-02xfree86: Delete file modinit.hDaniel Martin1-80/+0
All references to modinit.h have been remove with: a1d41e3 Move extension initialisation prototypes into extinit.h Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Keith Packard <keithp@keithp.com>
2014-09-26x86emu: Undefine _NO_INLINEAdam Jackson1-1/+1
Never defined by the server. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: Remove pointless xf86PrintMarkersAdam Jackson1-7/+1
Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: configServerFlags never fails, make it return voidAdam Jackson1-8/+2
Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: Remove unused xf86Info.useDefaultFontPathFromAdam Jackson2-3/+0
Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: Remove xf86Info.log (v2)Adam Jackson3-10/+0
SUBCLASS ALL THE THINGS v2: Remove the enum too (anholt) Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: Remove DisplayID supportAdam Jackson4-508/+0
Not actually wired up so it's fairly useless. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: Remove useless back-pointer to pScrn from colormap codeAdam Jackson1-26/+20
Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: Remove spurious xf86ConfigErrorAdam Jackson1-36/+12
READABLE. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: Remove Option "TextClockFreq"Adam Jackson7-22/+0
No modern driver pays attention to this. Presumably there existed hardware once where you couldn't just read the right values out of the CRTC. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26xfree86: Remove xv clip notify driver hookAdam Jackson3-8/+0
Nothing's using it. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-26loader: Deobfuscate RTLD_* macro stuffAdam Jackson1-20/+2
POSIX requires that these be named correctly, no need to be clever. Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-18xserver: Move 'pragma GCC diagnostic' outside functionsJon TURNEY1-1/+5
$ gcc --version gcc (Gentoo 4.4.3-r2 p1.2) 4.4.3 /jhbuild/checkout/xorg/xserver/os/log.c: In function ‘LogInit’: /jhbuild/checkout/xorg/xserver/os/log.c:199: error: #pragma GCC diagnostic not allowed inside functions /jhbuild/checkout/xorg/xserver/os/log.c:201: warning: format not a string literal, argument types not checked /jhbuild/checkout/xorg/xserver/os/log.c:212: error: #pragma GCC diagnostic not allowed inside functions /jhbuild/checkout/xorg/xserver/os/log.c:214: warning: format not a string literal, argument types not checked etc. Reviewed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
2014-09-18loader: Remove compatibility with ancient XFree86 version numberingAdam Jackson1-37/+9
Pretty sure I'm guilty of adding this. I think I was thinking of trying to be compatible with some really old binary-only driver that I had vague aspirations of reverse-engineering, but since I haven't gotten around to it in the intervening decade... Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Keith Packard <keithp@keithp.com>
2014-09-17Merge remote-tracking branch 'anholt/modesetting-import'Keith Packard8-1/+3067
2014-09-16modesetting: Drop remaining old-xserver compatibility.Eric Anholt3-24/+3
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-09-16modesetting: Drop use of compat-api.hEric Anholt4-125/+21
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-09-16modesetting: Connect the driver to the build.Eric Anholt5-9/+39
v2: Fix libdrm version check, and use XORG_VERSION_* instead of a static 1.0.0 version for the driver module. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-09-16xfree86: Clean up some more alpha awarenessAdam Jackson8-375/+2
Since the sparse stuff is gone none of these variables get used for anything, they're just dead side-effect-less execution. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-16xfree86: Remove the memory of MTRR awarenessAdam Jackson4-122/+0
pciaccess does this for us, and none of our internal hooks really remain. This does remove a cleanup pass from the BSD code, but the case it's covering (a previous server leaving MTRRs around) can't happen anymore. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-16xfree86: Remove xf86CheckMTRRAdam Jackson2-83/+0
Die die die die die. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-16xfree86: Remove xf86ReadBIOSAdam Jackson13-497/+1
Not being used externally or internally anymore. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-16int10: Port off xf86ReadBIOSAdam Jackson2-3/+32
If the linux vm86 backend changes look somewhat horrifying to you, that's because you have taste. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-16xfree86: Remove xf86LinearVidMemAdam Jackson11-35/+2
The only driver even pretending to check the result is mach64 anyway. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-16xfree86: Remove {set,undo}WC from VidMemInfoAdam Jackson4-619/+2
Now that mapMem is gone this can never actually get called. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-16xfree86: Remove xf86{Map,Unmap}VidMemAdam Jackson11-1302/+2
This API sucks. Fortunately it's mostly unused at this point. geode, sis, and xgi need minor patches to use the corresponding pciaccess code, neomagic will (more explicitly) lose its non-PCI support, and newport will need to be ported to /dev/mem or the platform bus or something. This should also make it pretty clear that alpha's sparse memory support was basically not a thing anymore, very few tears shed. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-15modesetting: Update for the platform device API change.Eric Anholt1-4/+4
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-09-15modesetting: Drop use of "pointer" for "void *"Eric Anholt2-5/+5
The xserver doesn't have that typedef. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-09-15modesetting: xserver already checks XEXTPROTO >= 7.2.99.901.Eric Anholt1-6/+0
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-09-15modesetting: unifdef MODESETTING_OUTPUT_SLAVE_SUPPORTEric Anholt3-37/+2
The server will always have it. v2: Clean up some weird formatting from the unifdeffing. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-09-15modesetting: Merge modesetting's COPYING into the xserver's.Eric Anholt1-44/+0
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
2014-08-26Merge branch 'modesetting-import' into masterEric Anholt8-0/+3246
This reintroduces a "hardware" driver to the xfree86 directory. Unlike the drivers that xorg used to include in the source tree, that needed independent release schedules to get hardware support out the door, the modesetting driver shouldn't change much as new hardware gets released. A lot of what this driver needs to do is just keep up with server ABI changes. This import was done by taking xf86-video-modesetting-0.9.0, and running this script with 'git-filter-branch -f --tree-filter ~/bin/modesetting-filter': mkdir -p hw/xfree86/drivers/modesetting rm -f README autogen.sh configure.ac Makefile.am .gitignore rm -f man/Makefile.am mv man/modesetting.man hw/xfree86/drivers/modesetting/ mv COPYING hw/xfree86/drivers/modesetting/ mv src/* hw/xfree86/drivers/modesetting/
2014-08-21xfree86: Allow non-PCI devices as primaryThierry Reding1-4/+3
On platforms that don't support PCI or have no GPU attached to the PCI bus, there can still be a primary device on a non-PCI bus. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Tested-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
2014-08-21xfree86: Fallback to first platform device as primaryThierry Reding3-0/+19
When neither of the various bus implementations was able to find a primary bus and device, fallback to using the platform bus as primary bus and the first platform device as primary device. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Tested-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
2014-08-17Fix format string.Joerg Sonnenberger1-1/+1
Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Signed-off-by: Keith Packard <keithp@keithp.com>