Thomas Hellstrom [Mon, 20 Jun 2011 07:58:44 +0000 (09:58 +0200)]
vmwgfx: Make a list of scanout bounding boxes available to each scanout pixmap
This info is needed for present readback.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Mon, 20 Jun 2011 07:05:48 +0000 (09:05 +0200)]
vmwgfx: Import the WSBM list macros
Use WSBM list handling macros for the glxWaitX flush list.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Fri, 17 Jun 2011 09:25:53 +0000 (11:25 +0200)]
vmwgfx: Check for large files
Fixes segfault on 32-bit servers.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Fri, 17 Jun 2011 06:18:13 +0000 (08:18 +0200)]
vmwgfx, saa: Build saa as a convenience library
instead of as a shared object.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Thu, 16 Jun 2011 19:21:25 +0000 (21:21 +0200)]
vmwgfx: Fix up driver build process for Xserver >= 1.7.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Thu, 16 Jun 2011 13:55:07 +0000 (15:55 +0200)]
vmwgfx, saa: Initial import
This imports the vmwgfx driver, based on the Gallium3D Xorg state tracker,
as well as the saa library. A "Shadow Acceleration Architecture", which is
optimized for the case where transfers between system (shadow) and hw memory
is very costly.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Wed, 30 Mar 2011 10:37:24 +0000 (12:37 +0200)]
vmwlegacy: Don't prune modes based on the virtual size of the default mode
We might be pruning modes based on the virtual size of the default mode in
some situations. Avoid this by allowing a virtual size equal to the device
max size, unless the user has requested something else.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Alan Hourihane <alanh@vmware.com>
Thomas Hellstrom [Wed, 30 Mar 2011 10:22:43 +0000 (12:22 +0200)]
vmwlegacy: Fix up default mode VRefresh anc Clock calculation
The VRefresh value was a factor 1000 too high.
Calculate clock based on vrefresh and resolution.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Alan Hourihane <alanh@vmware.com>
Thomas Hellstrom [Wed, 30 Mar 2011 09:01:06 +0000 (11:01 +0200)]
vmwlegacy: Fix a bug in screen dimension calculation
This bug resulted in incorrect screen dimensions and DPI being calculated
in some circumstances, leading to among other things bad aspect ratios in xine.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Tue, 29 Mar 2011 11:03:39 +0000 (13:03 +0200)]
vmwlegacy: Make sure we draw the colorkey to the right drawable
Don't draw the colorkey to the screen drawable, but to the video drawable
when possible.
Also change the Xv API/ABI test to use the builtin ABI version
functions.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Michel Dänzer <daenzer@vmware.com>
Thomas Hellstrom [Tue, 29 Mar 2011 09:18:24 +0000 (11:18 +0200)]
vmwlegacy: Silence a number of warnings
This potentially also fixes a use of an uninitialized pointer value, which
may cause OOM or segfaults.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Michel Dänzer <daenzer@vmware.com>
Thomas Hellstrom [Fri, 25 Mar 2011 18:17:00 +0000 (19:17 +0100)]
vmwlegacy: Fix segfault and setup of initial mode.
The fact that modes were added without names caused segfaults on older
X servers. At least up to and including Xserver 1.4.
Also, for some reason, at least Xserver 1.4 insists on setting the first mode
in the modelist, even if we set another mode as the current one.
Work around this by inserting a new mode with the current screen dimensions,
and add that modename last to the array of display requested mode names.
This means that if none of the previous mode names are found, we will at least
find the newly inserted mode.
Also, if there are no requested mode names at all, the driver previously
chose the largest mode that fit the timings. Now we will, in that case,
always select the newly inserted mode and thus not change resolution unless
specified.
Also add an option to not add this default mode. The option
"AddDefaultMode" is true by default.
Finally when we restore registers at exit and VT switch, make sure we
reprogram the initial width, height and bpp for the next time we start a
server.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Thu, 3 Mar 2011 08:47:48 +0000 (09:47 +0100)]
Remove unused variable
Signed-off-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Alan Hourihane [Wed, 16 Feb 2011 17:53:14 +0000 (18:53 +0100)]
vmwlegacy: Fix mode lookup
In situations where we have trouble finding a specified mode,
use the resolution given by the width and height device registers.
Signed-off-by: Alan Hourihane <alanh@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Wed, 16 Feb 2011 17:47:02 +0000 (18:47 +0100)]
vmwlegacy: Add a missing include
The test for Xserver >= 1.2 in the affected file was always failing.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Michel Dänzer <daenzer@vmware.com>
Thomas Hellstrom [Wed, 16 Feb 2011 16:29:47 +0000 (17:29 +0100)]
vmwlegacy: Don't attempt to call RRSendConfigNotify on Xservers < 1.2
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Alan Hourihane <alanh@vmware.com>
Reviewed-by: Michel Dänzer <daenzer@vmware.com>
Michel Dänzer [Thu, 27 Jan 2011 10:09:39 +0000 (11:09 +0100)]
vmwlegacy: Send ConfigureNotify events on Xinerama state changes with no mode change
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Thu, 27 Jan 2011 10:02:44 +0000 (11:02 +0100)]
Fix crosscompile build for older Xservers v2
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Fri, 21 Jan 2011 22:07:10 +0000 (23:07 +0100)]
Revert "Fix crosscompile build for older Xservers"
This reverts commit
16e16390385d890b3666485a40369f4c690d5033.
The fix was bogus as pointed out by Cyril Bruleboid <kibi@debian.org>, and
Gaetan Nadon <memsize@videotron.ca>
Thomas Hellstrom [Thu, 13 Jan 2011 12:17:17 +0000 (13:17 +0100)]
Fix crosscompile build for older Xservers
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Thu, 13 Jan 2011 11:52:14 +0000 (12:52 +0100)]
vmwlegacy: Remove Write-Combining setups
The virtual CPUs doesn't support it anyway.
Once suggested by Michel Daenzer.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Tue, 9 Nov 2010 13:31:30 +0000 (14:31 +0100)]
Bump package version to 11.0.3 for release
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Jesse Adkins [Tue, 28 Sep 2010 20:29:52 +0000 (13:29 -0700)]
Purge cvs tags.
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Thomas Hellstrom [Thu, 16 Sep 2010 08:08:12 +0000 (10:08 +0200)]
Make the modinfo string contain an optional subpatch number
The idea is that the build system assigns this number if needed.
As an example it might be the commit number since the last version tag.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Thu, 16 Sep 2010 07:58:07 +0000 (09:58 +0200)]
Make sure we build on 1.4.99.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Wed, 8 Sep 2010 07:57:35 +0000 (09:57 +0200)]
vmwlegacy: Fix a segfault in vmwareCursorCloseScreen.
The segfault occured because the named function was using resources that
were already taken down, because VMWARECloseScreen was called very late
in the CloseScreen callchain.
Make sure we wrap the CloseScreen pointers late in ScreenInit to avoid this.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Tue, 7 Sep 2010 19:55:28 +0000 (21:55 +0200)]
vmwlegacy: A number of Xv fixes
Properly init and uninit the port private clipboxes on setup and end.
Clear the port private clipboxes on video stop, to force re-painting
of the colorkey when the stream is resumed.
Make sure the colorkey is painted *before* the overlay is flushed. Some
host implementations seem picky about this.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Tue, 7 Sep 2010 10:17:46 +0000 (12:17 +0200)]
vmware/vmwlegacy: Silence compilation errors and -warnings.
Silence warnings and errors on various server versions due to incorrect
usage of libc functions.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Fri, 3 Sep 2010 09:19:01 +0000 (11:19 +0200)]
vmwlegacy: Always scale screen dimensions to the initial DPI on modeswitch.
When we switch mode we usually alter the size in a constant DPI environment
rather than keeping the size constant and alter the DPI.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Wed, 1 Sep 2010 05:58:18 +0000 (07:58 +0200)]
vmware: Handle chain-loader failures gracefully.
If the vmwlegacy driver wasn't present when expected, that would
leave the X server in a confused state. Thus report loading errors properly
back to the X server.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Gaetan Nadon [Wed, 18 Aug 2010 14:57:02 +0000 (10:57 -0400)]
vmwarectrl: rework standalone package as a subdir of driver
vmwarectrl is a unit test client tool for developers.
By default, it is not built unless --enable-vmwarectrl-client is used.
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Thomas Hellstrom [Wed, 18 Aug 2010 09:34:49 +0000 (11:34 +0200)]
Make the driver build and run without libdrm.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Thu, 12 Aug 2010 15:43:59 +0000 (17:43 +0200)]
Only set the first xinerama output as primary.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Adam Jackson [Tue, 10 Aug 2010 15:02:05 +0000 (11:02 -0400)]
xf86-video-vmware 11.0.2
Signed-off-by: Adam Jackson <ajax@redhat.com>
Gaetan Nadon [Sat, 24 Jul 2010 01:02:33 +0000 (21:02 -0400)]
config: add AM_PROG_CC_C_O for per-target compilation flags
The use of per-target compilation flags with C sources requires
that the macro AM_PROG_CC_C_O be called from configure.ac
If the C compiler does not accept the -c and -o options simultaneously,
define NO_MINUS_C_MINUS_O. This macro actually tests both the compiler
found by AC_PROG_CC, and, if different, the first cc in the path.
The test fails if one fails. This macro was created for GNU Make
to choose the default C compilation rule.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Wed, 21 Jul 2010 20:49:04 +0000 (16:49 -0400)]
config: add comments for main statements
Gaetan Nadon [Wed, 21 Jul 2010 20:07:00 +0000 (16:07 -0400)]
config: replace deprecated use of AC_OUTPUT with AC_CONFIG_FILES
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Wed, 21 Jul 2010 18:37:42 +0000 (14:37 -0400)]
config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Wed, 21 Jul 2010 18:05:23 +0000 (14:05 -0400)]
config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Wed, 21 Jul 2010 13:27:42 +0000 (09:27 -0400)]
config: complete AC_INIT m4 quoting
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Wed, 21 Jul 2010 01:44:58 +0000 (21:44 -0400)]
config: remove unrequired AC_SUBST([XORG_CFLAGS])
This macro is called by PKG_CHECK_MODULES
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Wed, 21 Jul 2010 00:24:42 +0000 (20:24 -0400)]
config: remove unrequired AC_HEADER_STDC
Autoconf says:
"This macro is obsolescent, as current systems have conforming
header files. New programs need not use this macro".
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Tue, 20 Jul 2010 23:41:31 +0000 (19:41 -0400)]
config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
AC_PROG_C_C99. This sets gcc with -std=gnu99.
If AC_PROG_CC macro is called afterwards, it resets CC to gcc.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Tue, 20 Jul 2010 22:45:19 +0000 (18:45 -0400)]
config: update AC_PREREQ statement to 2.60
Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.
ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Gaetan Nadon [Tue, 20 Jul 2010 20:15:30 +0000 (16:15 -0400)]
config: upgrade to util-macros 1.8 for additional man page support
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
The value of MAN_SUBST is the same for all X.Org packages.
Julien Cristau [Tue, 13 Jul 2010 10:57:15 +0000 (11:57 +0100)]
Don't crash the server on Xorg -configure
Fernando Carrijo [Thu, 1 Jul 2010 10:18:11 +0000 (07:18 -0300)]
Purge macros NEED_EVENTS and NEED_REPLIES
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Gaetan Nadon [Sun, 13 Jun 2010 17:10:55 +0000 (13:10 -0400)]
COPYING: replace stub file with actual Copyright notices.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Michel Dänzer [Mon, 29 Mar 2010 08:19:04 +0000 (10:19 +0200)]
Fix some issues pointed out by compiler warnings.
* vmware_chain_module() doesn't return any values.
* Remove an unused local variable.
Jakob Bornecrantz [Thu, 18 Mar 2010 14:30:36 +0000 (15:30 +0100)]
Bump for 11.0.1 release.
Jakob Bornecrantz [Tue, 9 Mar 2010 08:37:11 +0000 (08:37 +0000)]
Rework chainloader code to check for vmwgfx userspace driver as well
Roland Scheidegger [Tue, 9 Mar 2010 15:10:25 +0000 (16:10 +0100)]
fix a cursor refcounting bug, leading to segfaults
this is similar to what xf86_use_hw_cursor() does, which is replaced by
vmwareUseHWCursor (otherwise, the refcount could reach zero and hence the
cursor deallocated while xf86CursorEnableDisableFBAccess() could still bring
it back to life from the saved cursor).
It is probably insane to do refcounting here, but this needs a xserver fix,
and even if that's fixed this fix here shouldn't hurt (though would be
unnecessary).
Roland Scheidegger [Tue, 9 Mar 2010 15:03:59 +0000 (16:03 +0100)]
make DEBUG_LOGGING compile
Jakob Bornecrantz [Sun, 7 Mar 2010 15:02:39 +0000 (15:02 +0000)]
Print text about none fatal error message with Fatal in it
Jakob Bornecrantz [Fri, 26 Feb 2010 15:27:17 +0000 (16:27 +0100)]
Don't hardcode the module version in the source
As pointed out by Julien Cristau XORG_RELEASE_VERSION
gives us that info from configure.ac.
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Jakob Bornecrantz [Thu, 18 Feb 2010 13:11:32 +0000 (14:11 +0100)]
Bump major for new chainloading driver
Jakob Bornecrantz [Mon, 22 Feb 2010 12:20:06 +0000 (13:20 +0100)]
Link to drm but on for the vmware chainloader driver
Jakob Bornecrantz [Thu, 18 Feb 2010 14:20:31 +0000 (15:20 +0100)]
Make sure that modinfo strings are unique
Jakob Bornecrantz [Thu, 11 Feb 2010 22:18:37 +0000 (23:18 +0100)]
Add modinfo for vmware_drv.so
Jakob Bornecrantz [Thu, 11 Feb 2010 21:04:53 +0000 (22:04 +0100)]
Add a chain loading module to load new vmwgfx driver if kernel module is loaded
Alan Coopersmith [Fri, 15 Jan 2010 22:13:42 +0000 (14:13 -0800)]
Update Sun license notices to current X.Org standard form
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Gaetan Nadon [Wed, 16 Dec 2009 03:01:02 +0000 (22:01 -0500)]
configure.ac: remove unused sdkdir=$(pkg-config...) statement
The sdkdir variable isn't use, so remove the statement.
Acked-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Michel Dänzer [Tue, 29 Dec 2009 16:53:35 +0000 (17:53 +0100)]
Bump for 10.16.9 release.
Michel Dänzer [Tue, 29 Dec 2009 16:00:45 +0000 (17:00 +0100)]
VMWAREComposite: Only hide cursor if source picture is backed by drawable.
Should fix https://bugs.freedesktop.org/show_bug.cgi?id=14208 .
Michel Dänzer [Tue, 29 Dec 2009 15:41:16 +0000 (16:41 +0100)]
vmware: Fix crash with xserver >= 1.7.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=24541 .
Gaetan Nadon [Mon, 23 Nov 2009 14:25:06 +0000 (09:25 -0500)]
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
Gaetan Nadon [Wed, 28 Oct 2009 18:41:41 +0000 (14:41 -0400)]
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Automake 'foreign' option is specified in configure.ac.
Remove from Makefile.am
Gaetan Nadon [Wed, 28 Oct 2009 18:09:10 +0000 (14:09 -0400)]
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Add missing INSTALL file. Use standard GNU file on building tarball
README may have been updated
Remove AUTHORS file as it is empty and no content available yet.
Remove NEWS file as it is empty and no content available yet.
Gaetan Nadon [Mon, 26 Oct 2009 16:54:23 +0000 (12:54 -0400)]
Several driver modules do not have a ChangeLog target in Makefile.am #23814
The git generated ChangeLog replaces the hand written one.
Update configure.ac to xorg-macros level 1.3.
Use XORG_DEFAULT_OPTIONS which replaces four XORG_* macros
Update Makefile.am to add ChangeLog target if missing
Remove ChangeLog from EXTRA_DIST or *CLEAN variables
This is a pre-req for the INSTALL_CMD
Gaetan Nadon [Thu, 22 Oct 2009 17:06:19 +0000 (13:06 -0400)]
.gitignore: use common defaults with custom section # 24239
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
Gaetan Nadon [Thu, 22 Oct 2009 16:34:18 +0000 (12:34 -0400)]
.gitignore: use common defaults with custom section # 24239
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
Philip Langdale [Wed, 9 Sep 2009 05:21:33 +0000 (22:21 -0700)]
Bump fo 10.16.8 Release
Gaetan Nadon [Mon, 7 Sep 2009 15:12:13 +0000 (11:12 -0400)]
xf86-video-vmware: Remove unused .cvsignore file #23776
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Dave Airlie [Tue, 28 Jul 2009 05:22:42 +0000 (15:22 +1000)]
vmware: change to using ABI version check
Dave Airlie [Tue, 28 Jul 2009 04:11:59 +0000 (14:11 +1000)]
vmware: fix resource removal properly
Dave Airlie [Tue, 28 Jul 2009 03:32:41 +0000 (13:32 +1000)]
vmware: update for resources/RAC API removal
Philip Langdale [Tue, 21 Jul 2009 01:03:47 +0000 (18:03 -0700)]
Bump for 10.16.7 Release.
Micah Dowty [Mon, 1 Jun 2009 17:47:51 +0000 (10:47 -0700)]
An imperfect fix for Xinerama state changes without a mode change
This patch improves behaviour for Xinerama state changes (via the
VMWARE_CTRL) extension that don't have an accompanying mode change.
This will be the case if a new Xinerama monitor layout has a bounding
box with an identical size to that of the previous layout.
Prior to this patch, the behaviour was pretty bad. If you sent two
Xinerama states with the same bounding box, the second state would
be set as pending but no actual mode change would occur, because
the X server would already be in the right video mode. This means
that the pending mode stays pending.
If another Xinerama state comes in after this, we would hit our
"Aborting due to existing pending state" error, and the new state
would be discarded. This means we'd drop the mode switch on the
floor, plus we'd lie to the client and say it worked.
One example of the user-visible symptoms from this: The user has
four monitors of the same size. We'll call them A through D.
The VM goes into full-screen mode, and they set it to use screens
ABC. Now they switch to BCD. These have the same bounding box size,
so no mode change occurs and a topology is still pending. Now they
switch to monitors BC. This mode switch is dropped, so the guest
is still in the ABC topology and the mode is too wide for BC.
This patch is an incomplete fix. If we're setting a new topology
with the same bounding box, we'll flush the Xinerama state
immediately since we know the mode switch will never occur. This
means we don't get stuck with xineramaNextState set when it
shouldn't be, and we don't have the problem with dropping
subsequent mode changes. We also do set the new Xinerama state,
so apps that query it will see the updated state immediately.
But the fix isn't perfect- as far as I can tell, there's no way
to notify applications that the monitor layout changed without
a mode switch. So even though we've set the new topology, most
apps won't notice. There are ways we could hack around this,
but none of them are pretty.
Bob Long [Fri, 22 May 2009 22:48:55 +0000 (15:48 -0700)]
Fix black screen after resume from hibernate.
The root cause for the black screen and system lock up is
caused by not recovering the SVGA ID register after hibernation.
Incorrect ID register value will invalidate the FIFO memory start
register, and driver will not retrieve correct FIFO memory start
address and the busy read of svga FIFO sync register will lock up
the whole system.
Currently SVGA Xorg driver does not have a kernel module to handle
the power management event, but Xorg will call driver provided
LeaveVT before shutting down system and call EnterVT after resuming
system from hibernation, so these two callback functions are good
entry points to save and restore the ID register value. This patch
saves the ID register value in LeaveVT and restores the value to
SVGA ID register in EnterVT.
Philip Langdale [Tue, 12 May 2009 23:48:43 +0000 (16:48 -0700)]
Bump for 10.16.6 release
Micah Dowty [Tue, 12 May 2009 23:46:39 +0000 (16:46 -0700)]
Better cursor size limit and explanation
Increase the cursor size limit to 64x64, and give a
better explanation of the host's cursor size limits.
Micah Dowty [Tue, 12 May 2009 23:46:00 +0000 (16:46 -0700)]
Allow cursor updates while unhidden
This change just adds a flag to our hardware cursor,
telling Xorg that it doesn't need to hide the cursor
when updating its shape. This fixes the cursor flicker
in X11.
Micah Dowty [Tue, 12 May 2009 23:45:29 +0000 (16:45 -0700)]
Unbreak vmwarectrl setres
The vmwarectrl tool's "setres" command was unusable,
because it looks like someone added the settopology
test without updating the argument indices for setres.
This patch makes setres usable again.
Micah Dowty [Tue, 12 May 2009 23:44:42 +0000 (16:44 -0700)]
Fix dynamic mode edge cases
The VMware Xorg driver supports dynamic modelines that can be set from
userspace via an X extension. These are used to implement VM features
which need to automatically change the resolution of the guest OS.
This driver implements the feature using two modelines. The driver
would alternately update one mode then the other, so that in typical
usage one mode is current and the other is available for the next mode
switch.
This usually worked, but there were many edge cases that could cause
this alternating pattern to get 'out of sync', so we'd end up changing
the resolution of the current video mode. This could end up putting
the X server in a state where the screen resolution has been changed,
but the hardware was never reprogrammed for the new resolution.
This patch fixes the problem by explicitly searching for a dynamic
mode that isn't currently in use. We no longer rely on the alternating
pattern.
Micah Dowty [Tue, 12 May 2009 23:43:13 +0000 (16:43 -0700)]
Update README
Updates the copyright date, and replaces the rather out-of-date
2D documentation with a link to the updated 2D and 3D docs on
Source Forge.
Shelley Gong [Thu, 16 Apr 2009 20:28:47 +0000 (13:28 -0700)]
Automatically add modelines for the driver's built-in set of modes.
The driver has had a built-in set of modes for a while, but there
was nothing adding modelines to back them up, causing initial modes
to be rejected at startup with certain Xorg versions.
This change adds the actual modelines for sufficiently new versions
of the server (>= 1.2), as the necessary calls were only introduced
at that time.
Alan Coopersmith [Sat, 10 Jan 2009 00:39:07 +0000 (16:39 -0800)]
Remove xorgconfig & xorgcfg from See Also list in man page
Philip Langdale [Tue, 19 Aug 2008 18:23:44 +0000 (11:23 -0700)]
Bump version for 10.16.5 release.
Bankim Bhavsar [Tue, 19 Aug 2008 18:23:02 +0000 (11:23 -0700)]
Add RegionEqual function for older XFree86 versions.
Fixes bug : http://bugzilla.eng.vmware.com/show_bug.cgi?id=312853
When we added AUTOPAINT_COLORKEY capability to our VMware video driver,
region functions were used to keep track of colorkey painting.
REGION_EQUAL was one of them.
Unfortunately REGION_EQUAL was not present in regionstr.h shipped with XFree86 version
4.3.0.
This version is used by TurboLinux 10; causing X server to crash while playing videos.
REGION_EQUAL was added in revision 1.8 of regionstr.h and available for xfree86 version
4.3.99
onwards.
Reference:
http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/include/regionstr.h.diff?r1=1.7&r2=1.8
When I compiled the existing code(without my change), I see a warning was generated
indicating REGION_EQUAL is not present.
Too bad we missed it.
This patch includes
1) Slightly modified version of miRegionEqual from miRegion.c
2) Some formating cleanup.
Philip Langdale [Mon, 21 Jul 2008 22:26:01 +0000 (15:26 -0700)]
Prepare for 10.16.4 release.
Philip Langdale [Mon, 21 Jul 2008 22:23:50 +0000 (15:23 -0700)]
Video Overlay: Handle clipping correctly with AutoPaint colorkey.
We recently added XV_AUTOPAINT_COLORKEY attribute to the X video driver
to enable applications like Real player that rely on this attribute to
display video frames in Linux guest.
When this attribute is SET, we paint the colorkey on 1st frame and from
there on only when the video is moved.
This introduced a bug 305202 with clipping.
Consider a case when the video is playing, obscure the player window
with another window, without moving the player window, move the other
window away. The part of the window that was obscured didn't display
the video.
With this patch instead of relying on the target rectangle, we use
the clipBoxes supplied in every frame.
Philip Langdale [Fri, 18 Jul 2008 21:03:09 +0000 (14:03 -0700)]
Prepare for 10.16.3
Bump up version numbers.
Philip Langdale [Fri, 18 Jul 2008 20:59:34 +0000 (13:59 -0700)]
Video Overlay: Add XV_AUTOPAINT_COLORKEY capability to the Xv extension of Linux guest driver.
Applications use XV_AUTOPAINT_COLORKEY capability to let the driver handle the painting
of colorkey.
Real Player assumes this capability as ON by default and hence prior to this patch videos
didn't play with Real player.
With this patch:
a) If AUTOPAINT_COLORKEY is SET then the driver handles the painting of the colorkey.
Painting is done on the 1st frame and from there on only if the video frame moves.
b) Adds UYVY fourcc format to keep it consistent with Windows SVGA driver and the host backends.
c) Changes the default colorkey from a pungent GREEN to a darker shade.
Real Player sets this colorkey and it looks better when the video is moved around.
Vinay Bondhugula [Thu, 3 Jul 2008 01:32:44 +0000 (21:32 -0400)]
Trivial fix: Delete ASSERT() statement
Delete the ASSERT() statement that got introduced in the previous check-in.
Vinay Bondhugula [Wed, 2 Jul 2008 22:17:58 +0000 (18:17 -0400)]
Fix video overlay offscreen allocation bug
When Kaffeine player stops a video, it sets the cleanup flag to FALSE and may
start playing the next video. In its present state the driver does not check or
clean up the offscreen area. This is a bug as the newer video might need more
offscreen space for its frame. The fix is to check for the offscreen frame size
in videoPlay and restart the stream if necessary.
Vinay Bondhugula [Thu, 12 Jun 2008 21:34:30 +0000 (17:34 -0400)]
Prepare for 10.16.2
Bump up version numbers.
Vinay Bondhugula [Tue, 29 Apr 2008 22:29:11 +0000 (18:29 -0400)]
Fix VMWARE_CTRL and Xinerama Initialization
Move initialization code for the vmware control and xinerama extensions to
VMWAREScreenInit(), so that auto-resize and multi-mon work fine after a user
logs out and logs in again in a graphical display manager.
Vinay Bondhugula [Tue, 22 Apr 2008 18:18:45 +0000 (14:18 -0400)]
More xorg and xfree86 backwards compatibility
Push most of the xorg-server version checking into the configure script. With
this change, unmodified driver source compiles in the XFree86 4.3 tree.
Vinay Bondhugula [Fri, 18 Apr 2008 22:00:38 +0000 (18:00 -0400)]
Change // comments to /*
This will make it easier to compile the driver against ancient versions of X.
Paulo Cesar Pereira de Andrade [Fri, 18 Apr 2008 03:04:45 +0000 (23:04 -0400)]
Compile warning fixes
Major problem was prototype vmwareInitVideo not matching implementation
vmwareVideoInit. Remaining are adding an "ansification" of a function without
arguments, and removing/disabling unused variables/functions.