summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2022-09-29Spelling fixes.Ville Skyttä4-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-01-28vmwgfx: Limit the number of cliprects in a drm dirtyfb command v3Thomas Hellstrom1-0/+4
The drm dirtyfb command would error if the number of cliprects were larger than DRM_MODE_FB_DIRTY_MAX_CLIPS. If that number is exceeded, split the command up. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> #v2 Reviewed-by: Deepak Rawat <drawat@vmware.com> #v1
2019-01-28vmwgfx: Don't exceed the device command size limit v3Thomas Hellstrom1-0/+1
With a huge number of DMA clip rects we could exceed the device command buffer command size limit. Fix this by sending multiple DMA commands when we exceed the limit. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com> #v1
2018-11-12Remove obsolete B16 & B32 tags in struct definitionsAlan Coopersmith1-35/+35
They were defined as empty strings on all platforms except for the long unsupported Cray systems which needed to use bitfields to define any type smaller than 64-bits. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2018-03-14saa: Build compatibility with xserver 1.20Adam Jackson1-0/+4
fbGetRotatedPixmap went away with 24bpp support, just treat it as NULL and we'll do the right thing. Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2018-02-20Fix a couple of shadowed declaration warningsThomas Hellstrom1-4/+4
In some enviroments, "index", "y1" and "y2" are defined globally causing warnings about shadowed declarations. Fix this. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2018-02-20Build fixesThomas Hellstrom2-2/+16
A couple of more build fixes for older X servers. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
2018-02-15legacy: Silence a warning about an unused constantThomas Hellstrom1-0/+2
VMWAREBuildStr was only used in the !LIBPCIACCESS path. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com>
2018-02-15legacy: Avoid using the xf86[Un]blockSigio functionsThomas Hellstrom1-1/+19
They have been deprecated since mouse doesn't use SIGIO anymore. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com>
2018-02-15Fix a number of compilation warningsThomas Hellstrom3-9/+34
There are a number of compilation warnings caused by const char pointers being either explicitly or implicitly cast to char pointers. There are a number of ABI differences that have hindered this so far, but make a new attempt using the common_compat.h defines. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com>
2018-01-03Add the common_compat.h source file for distributionThomas Hellstrom1-1/+2
The common_compat.h source file was missing from Makefile.am causing "make distcheck" to fail. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2017-08-07vmware: Fix build warningsDeepak Singh Rawat3-7/+22
Due to following commit in xserver there were build warnings, as variables now declared const. d89b42bda46d36fc0879611cc3b3566957ce36d0 e1e01d2e33c632e395d7e396f73fba8ae606b15a Added a compat header file. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>:q
2016-11-16Adapt Block/WakeupHandler signature for ABI 23Hans de Goede1-0/+5
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
2015-01-20Add 2560x1440 to supported resolutions.Thomas Klausner1-0/+1
Native resolution on iMac 27". Reported missing by Benjamin Lorenz in http://gnats.netbsd.org/49094 Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2014-08-28vmware/legacy: Fix overlay related compile breakage on earlier X serversThomas Hellstrom1-0/+4
Introduced by commit: vmware/legacy: Apply same fix to auto colrkey fill Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-08-28vmware: Fix bootstrap related compile errors on earlier X serversThomas Hellstrom1-2/+5
Introduced by commit Add support for XSERVER_PLATFORM_BUS Note that the vmware DriverRec declaration can be cleaned up considerably using C99 designated initializers. Perhaps something for the next release... Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-08-25vmware: Clear the PITCHLOCK register if available before modesetThomas Hellstrom1-1/+4
In some situations the fbdev driver may have set this register before legacy driver startup causing a weird-looking desktop. Make sure this register is cleared on each modeset. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-08-14vmware/legacy: Fix out of bound array indexingJakob Bornecrantz1-1/+1
Spotted by coverity. Reported-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2014-08-11vmware/legacy: Fix uninitialized values in video commandsJakob Bornecrantz1-1/+2
Fixed bug where video stopped working on systems that didn't have the new kms enabled kernel driver installed. Found on CentOS 6.4. After updating the register header SVGA_VIDEO_NUM_REGS value got upped by two in order to support GMR and Screen Objects. Since this path is mostly used on older hosts that may not support them, don't send them at all. Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-05-23vmware/legacy: Apply same fix to auto colorkey fillJakob Bornecrantz1-1/+6
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Thomas Hellström <thellstrom@vmware.com>
2014-05-14Add support for server managed fdsHans de Goede1-0/+5
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-05-14Add support for XSERVER_PLATFORM_BUSHans de Goede2-6/+51
This is a preparation patch for adding support for server managed fds. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-02-26vmware: Fix compilation on newer X serversJakob Bornecrantz1-1/+3
Found by Bryan Lee. Later versions of X.org turns dispMode pointers into const upsetting gcc, turn them into size_t's instead. Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2014-01-09vmware: Fix build errors and warningsThomas Hellstrom2-2/+3
A previous commit and the hosted merge unfortunately brought in some build errors / warnings on early X servers. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2013-12-19vmwgfx: Add an infrastructure to be able to run hosted under a compositor v2Thomas Hellstrom2-2/+19
Figure out what's needed both for XMir and XWayland and make a common driver structure out of it. v2: Added a lot of comments. No code change. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2013-12-05vmwgfx: Fix some compilation warnings and indentationsThomas Hellstrom2-4/+2
Most of the compilation warnings we're seeing are due to bad xorg headers, but fix the ones we can fix in the driver. Some indentation fixes as well. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2013-02-14Kill mibstoreZack Rusin1-2/+0
It was a noop for at least 5 years and it has been removed. Signed-off-by: Zack Rusin <zackr@vmware.com>
2012-07-03vmware: avoid warnings about shadowing 'i'Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-03vmware: drop infoFromScreen inline in favour of new interfaceDave Airlie3-16/+12
This also should fix the build regression introduced with the fix for this macro. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-15vmware: Fix up some warnings after new compat API change.Robert Hooker1-0/+1
Fixes multiple instances of these warnings on x86_64: ../../src/vmware.h:180:5: warning: implicit declaration of function 'xf86ScreenToScrn' [-Wimplicit-function-declaration] ../../src/vmware.h:180:5: warning: nested extern declaration of 'xf86ScreenToScrn' [-Wnested-externs] ../../src/vmware.h:180:5: warning: return makes pointer from integer without a cast [enabled by default] Function `xf86ScreenToScrn' implicitly converted to pointer at ../../src/vmware.h:180 Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Robert Hooker <sarvatt@ubuntu.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2012-06-09vmware: port vmware driver to new compat APIDave Airlie5-22/+122
This is a port of the vmware driver to the new compat API. Tested-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2012-03-20vmware/legacy: Fix crash on Xserver 1.12.0Jakob Bornecrantz1-0/+4
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Zack Rusin <zackr@vmware.com>
2012-03-13config: include saa and vmwgfx subdirs in the tarballGaetan Nadon1-2/+5
Use AM_CONDITIONAL. Automake knows what to distribute. It needs to be able to navigate down the subdirs to find what needs to be included in the tarball. To test reliably, create a tarball and expand it into a separate directory and build with xatracker. Distcheck will not detect missing code when such code is configured not to build. The content of a tarball *must* always be identical, regardless of the configuration options used or on which platform it was configured. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2012-02-08vmware/legacy: Fix initial mode size v2Thomas Hellstrom1-4/+11
Commit "vmwlegacy: Make the default be a minium of 800x600..." read the dimensions from the incorrect register pair. v2: Also treat initial widths and heights larger than the maximum values as an error and revert back to the minimum. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2012-02-02vmware: Kill warnings on Xserver 1.12Thomas Hellstrom4-33/+17
Compile-tested on servers 1.0 through 1.12. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2012-01-12vmwlegacy: Make the default be a minimum of 800x600Jakob Bornecrantz1-2/+11
This patch and the corresponding vmwgfx patch formalizes both drivers on the same behviour. The minimum is 800x600 (unless the max size is smaller). This makes it unnecessary to check against VRAM size since it is always at least large enough to fit the max values. Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2012-01-12vmware: Make sure the driver builds on old serversThomas Hellstrom5-107/+120
Move things around a bit so the driver compiles with servers back to Xserver 1.0. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-19Merge branch 'vmwgfx_branch'Thomas Hellstrom8-1154/+1875
2011-12-06vmwgfx: Add an option to enable rendercheck modeThomas Hellstrom2-1/+3
Rendercheck mode is used to enable acceleration of all supported composite operations, regardless of the current data location. The mode is off by default, but could be turned on to test the hardware composite operation implementation. Due to excessive data migration, rendercheck mode will be slow. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-25vmwlegacy: Factor out code that can be common for vmwgfx and vmwlegacyThomas Hellstrom4-128/+208
In this case it's the parsing of the gui / statix xinerama topology. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-25vmwlegacy: Accept option "GuiLayout" as a synonym for "staticXinerama"Thomas Hellstrom1-6/+24
It's more user-friendly and in line with what it's being used for in the vmwgfx driver. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-25vmware: Update library dependenciesThomas Hellstrom1-0/+1
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-25vmware: Update the vmware register definitionThomas Hellstrom1-49/+255
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-25vmware: Hook up vmwgfx to be tried before falling back to legacyThomas Hellstrom4-284/+68
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-25vmwlegacy: Factor out bootstrap functionsThomas Hellstrom4-392/+529
Preparing for choosing driver path in preinit instead of using shim loader. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-22vmwlegacy: Fix up Xinerama / panoramiX replies.Thomas Hellstrom1-0/+10
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-17vmwlegacy: Fix device fifo communicationThomas Hellstrom1-2/+8
This fixes two issues with the device fifo communication: 1) Idle the fifo before initializing it. If the fifo is already up and processing data due to an uncleanly shut down server, and init could otherwise confuse the device. 2) Mark fifo memory volatile when writing to it and make sure commands are written before telling the device they are available. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-07Build fix for ABI version 12Jeremy Huddleston1-0/+2
This results in the vmware driver assuming there is only one PCI domain, which I think is true for everywhere this is expected to run anyway. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-07Fix build failures resulting from changes to the swaps and swapl macros in ↵Jeremy Huddleston3-48/+56
recent xorg-server Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-05Use dixLookupWindow instead of LookupWindow on Xorg 1.5 & laterAlan Coopersmith1-6/+32
The LookupWindow function was deprecated in xserver commit ed75b056511ccb4 and removed during the Xorg 1.11 merge window by commit 82a8677d9175732. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>