summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-06-06vmware: port vmware driver to new compat APIcompat-apiDave Airlie12-72/+174
This is a port of the vmware driver to the new compat API. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-04-20vmwgfx: set the XA_FLAG_SHARED flag for composite dest surfacesBrian Paul1-1/+1
This fixes a failed assertion in the gallium/svga driver in the svga_texture_get_handle() function. The texture resource wasn't getting created with the PIPE_BIND_SHARED flag so the !cachable assertion would fail and the X session would abort. This didn't happen with release builds. Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2012-03-20Bump version number for the releasexf86-video-vmware-12.0.2Jakob Bornecrantz1-1/+1
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2012-03-20vmware/legacy: Fix crash on Xserver 1.12.0Jakob Bornecrantz2-0/+8
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Zack Rusin <zackr@vmware.com>
2012-03-15Fix a memory corruption due to a redundant free.Zack Rusin1-2/+0
We use the empty rect purely as a placeholder and never initialize it with its own memory so lets not try to free it. Spotted by Dave Airlie. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2012-03-13Bump version number for the releasexf86-video-vmware-12.0.1Jakob Bornecrantz1-1/+1
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2012-03-13config: move AC_SYS_LARGEFILE in autoconf init sectionGaetan Nadon1-1/+1
There is no need for this statement to be conditionally included. It adds support for large files without taking anything away. http://www.gnu.org/software/autoconf/manual/autoconf.html Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2012-03-13config: include saa and vmwgfx subdirs in the tarballGaetan Nadon5-19/+20
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-03-08Bump version number for the releasexf86-video-vmware-12.0.0Zack Rusin1-1/+1
Signed-off-by: Zack Rusin <zackr@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-07saa: Try to avoid readbacks during polyFillRectThomas Hellstrom1-0/+102
This significantly improves performance of shaped windows on top of 3D contents Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Zack Rusin <zackr@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-02-02vmwgfx: Kill a deprecation warning on server 1.12Thomas Hellstrom1-1/+0
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2012-02-02vmwgfx: Fix up swap[sl] for server 1.12Thomas Hellstrom2-20/+29
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2012-02-02vmwgfx: Avoid including a library header and use pixman for type conversionThomas Hellstrom1-10/+10
The PictTransform type is a typedef of a pixman type. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2012-01-13Bump version number for releasexf86-video-vmware-11.99.901Thomas Hellstrom1-1/+1
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2012-01-13Make the driver build pass "make distcheck"Thomas Hellstrom3-4/+7
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2012-01-13vmwgfx: Adapt to new XA version number v2Thomas Hellstrom1-17/+10
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2012-01-13vmwgfx,saa: Fix a bunch of compilation warningsThomas Hellstrom4-9/+4
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@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>
2012-01-12vmware: Update ManpageThomas Hellström1-3/+60
Update the Manpage with new options and a brief modesetting- and 3D description. Signed-off-by: Thomas Hellström <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-19Merge branch 'vmwgfx_branch'Thomas Hellstrom38-1161/+15548
2011-12-15saa, vmwgfx: Fix saa_copy_compositevmwgfx_branchThomas Hellstrom3-24/+37
The traditional accelerated copy methods aren't format aware. Make saa copy format aware,and pass formats on to the driver copy function if available. If the driver can't handle format conversions it needs to return FALSE. This fixes format confusion in the copy composite fastpath. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-15saa: Always read back hw contents on poly_fill_rectThomas Hellstrom1-1/+7
The damage region may be much larger than the actual area filled, so make sure we read back any hw contents in the damage region since we use it to mark sw dirty. Revisit this in the future since it may increase readbacks in an undesired way. There are workarounds. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-15saa: Only try to accelerate pixmaps that are driver pixmapsThomas Hellstrom2-1/+19
Trying to accelerate scratch pixmaps doesn't work currently, and I'm not sure it's a big benefit either. This is in line with what EXA does. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrants <jakob@vmware.com>
2011-12-08vmwgfx: Reduce system resource usage with textured videoThomas Hellstrom1-18/+48
Use U and V textures and corresponding dma buffers that match the size of the input UV data rather than using textures and DMA buffers that match the Y data. This simplifies data copy and reduces the amount of image data transfered to the host by up to 50% (YV12). It also reduces dma buffer- and surface memory usage correspondingly. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-08vmwgfx: Hook up XV color conversion control attributesThomas Hellstrom1-23/+74
This enables the standard XV color conversion control attributes contrast, scaling, saturation and hue. Currently the attribute change takes effect on the next image only. If we ever implement a ReputImage callback, we can use it to update the image immediately on attribute change. The attribute ranges follow those used by the proprietary Nvidia driver. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-08vmwgfx: Adapt to new interface of xa_yuv_planar_blitThomas Hellstrom2-30/+82
Also make it easier to modify the color conversion matrix based on yuv encoding properties. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-06vmwgfx: Fix MessageType members that are incorrectly typed as BoolThomas Hellstrom1-4/+4
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-06vmwgfx: Add an option to enable rendercheck modeThomas Hellstrom7-5/+35
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-12-06vmwgfx: Adapt to the dri state tracker sending depth instead of bppThomas Hellstrom2-5/+12
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-06vmwgfx: Don't register back buffers as "hw_is_dri2_fronts" v2Thomas Hellstrom1-8/+11
That is reserved for dri2 front or fake front pixmaps that need immediate flushing of software contents to hardware. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-01vmwgfx: Include drm.h from correct pathJakob Bornecrantz1-1/+1
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-28vmwgfx: Make the drm device name persistentThomas Hellstrom2-8/+13
The DRI2 code doesn't copy the device name, but assumes the storage is persistent. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Alan Hourihane <alanh@vmware.com>
2011-11-25vmwgfx: Get the drm device name from the open file descriptorThomas Hellstrom1-2/+21
Rather than hardcoding it. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-25vmwgfx: Use config options to optionally set GUI topologyThomas Hellstrom3-23/+79
Use option "StaticXinerama" or "GuiLayout" to set initial GUI topology, similar to how these options are used with the legacy driver. 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 Hellstrom2-0/+2
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-25vmwgfx: Pre-init fixesThomas Hellstrom4-69/+82
A bunch of fixes that makes the fallback from vmwgfx to vmwlegacy easier. 1) Allow only 16 and 24 bit depths with vmwgfx. We may revisit this later. 2) Try to reclaim some resources if pre_init fails. 3) Print error messages so the user understands what happens on fallback. 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 Hellstrom10-541/+93
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-11-09vmwgfx: Make sure we don't render when VT switchedThomas Hellstrom2-7/+16
When compiz is enabled, we may try to DMA sw rendered contents of dri2 drawables to surfaces while VT switched. I'm not sure how this could be happening, but queue the DMA until the next block handler. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Alan Hourihane <alanh@vmware.com>
2011-11-09vmwgfx: Fix rendering errors when rotating / unrotating a screen.Thomas Hellstrom1-4/+6
The dirty trackers weren't correctly translated to pending presents / updates when a pixmap was bound as a scanout. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrants <jakob@vmware.com>
2011-11-09vmwgfx: A number of damage fixesThomas Hellstrom1-20/+42
A damage tracker was sometimes attached to a pixmap in the middle of an operation. That meant that damage was never registered for that operation which caused dirty-tracking to fail. Instead, add a damage tracker as soon as we have storage attached to the pixmap. Also, when a pixmap was resized, the dirty region trackers could become stale, and cause DMA operation extending outside of the pixmap with server crashes as a result. This commit fixes that. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-11-01vmwgfx: Add an option to use a scanout surfaceThomas Hellstrom4-33/+93
With this option enabled, we compose all contents (both sw and hw) in the guest before presenting it. Just like the old xorg state tracker did when 3D was enabled. It's not as bad as the old xorg state tracker was for interactivity, but there's a small but noticeable lag when moving windows. It's mainly intended for testing purposes, like testing the surface dirty paths in the kernel module. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>