platform/upstream/xf86-video-vmware.git
13 years agoRemove unused variable
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>
13 years agovmwlegacy: Fix mode lookup
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>
13 years agovmwlegacy: Add a missing include
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>
13 years agovmwlegacy: Don't attempt to call RRSendConfigNotify on Xservers < 1.2
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>
13 years agovmwlegacy: Send ConfigureNotify events on Xinerama state changes with no mode change
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>
13 years agoFix crosscompile build for older Xservers v2
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>
13 years agoRevert "Fix crosscompile build for older Xservers"
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>

13 years agoFix crosscompile build for older Xservers
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>
13 years agovmwlegacy: Remove Write-Combining setups
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>
13 years agoBump package version to 11.0.3 for release xf86-video-vmware-11.0.3
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>
13 years agoPurge cvs tags.
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>
13 years agoMake the modinfo string contain an optional subpatch number
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>
13 years agoMake sure we build on 1.4.99.
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>
13 years agovmwlegacy: Fix a segfault in vmwareCursorCloseScreen.
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>
13 years agovmwlegacy: A number of Xv fixes
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>
13 years agovmware/vmwlegacy: Silence compilation errors and -warnings.
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>
13 years agovmwlegacy: Always scale screen dimensions to the initial DPI on modeswitch.
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>
13 years agovmware: Handle chain-loader failures gracefully.
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>
13 years agovmwarectrl: rework standalone package as a subdir of driver
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>
13 years agoMake the driver build and run without libdrm.
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>
13 years agoOnly set the first xinerama output as primary.
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>
13 years agoxf86-video-vmware 11.0.2 xf86-video-vmware-11.0.2
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>
14 years agoconfig: add AM_PROG_CC_C_O for per-target compilation flags
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>
14 years agoconfig: add comments for main statements
Gaetan Nadon [Wed, 21 Jul 2010 20:49:04 +0000 (16:49 -0400)]
config: add comments for main statements

14 years agoconfig: replace deprecated use of AC_OUTPUT with AC_CONFIG_FILES
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>
14 years agoconfig: replace deprecated AC_HELP_STRING with AS_HELP_STRING
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>
14 years agoconfig: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
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>
14 years agoconfig: complete AC_INIT m4 quoting
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>
14 years agoconfig: remove unrequired AC_SUBST([XORG_CFLAGS])
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>
14 years agoconfig: remove unrequired AC_HEADER_STDC
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>
14 years agoconfig: remove AC_PROG_CC as it overrides AC_PROG_C_C99
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>
14 years agoconfig: update AC_PREREQ statement to 2.60
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>
14 years agoconfig: upgrade to util-macros 1.8 for additional man page support
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.

14 years agoDon't crash the server on Xorg -configure
Julien Cristau [Tue, 13 Jul 2010 10:57:15 +0000 (11:57 +0100)]
Don't crash the server on Xorg -configure

14 years agoPurge macros NEED_EVENTS and NEED_REPLIES
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>
14 years agoCOPYING: replace stub file with actual Copyright notices.
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>
14 years agoFix some issues pointed out by compiler warnings.
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.

14 years agoBump for 11.0.1 release. xf86-video-vmware-11.0.1
Jakob Bornecrantz [Thu, 18 Mar 2010 14:30:36 +0000 (15:30 +0100)]
Bump for 11.0.1 release.

14 years agoRework chainloader code to check for vmwgfx userspace driver as well
Jakob Bornecrantz [Tue, 9 Mar 2010 08:37:11 +0000 (08:37 +0000)]
Rework chainloader code to check for vmwgfx userspace driver as well

14 years agofix a cursor refcounting bug, leading to segfaults
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).

14 years agomake DEBUG_LOGGING compile
Roland Scheidegger [Tue, 9 Mar 2010 15:03:59 +0000 (16:03 +0100)]
make DEBUG_LOGGING compile

14 years agoPrint text about none fatal error message with Fatal in it
Jakob Bornecrantz [Sun, 7 Mar 2010 15:02:39 +0000 (15:02 +0000)]
Print text about none fatal error message with Fatal in it

14 years agoDon't hardcode the module version in the source
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>
14 years agoBump major for new chainloading driver xf86-video-vmware-11.0.0
Jakob Bornecrantz [Thu, 18 Feb 2010 13:11:32 +0000 (14:11 +0100)]
Bump major for new chainloading driver

14 years agoLink to drm but on for the vmware chainloader driver
Jakob Bornecrantz [Mon, 22 Feb 2010 12:20:06 +0000 (13:20 +0100)]
Link to drm but on for the vmware chainloader driver

14 years agoMake sure that modinfo strings are unique
Jakob Bornecrantz [Thu, 18 Feb 2010 14:20:31 +0000 (15:20 +0100)]
Make sure that modinfo strings are unique

14 years agoAdd modinfo for vmware_drv.so
Jakob Bornecrantz [Thu, 11 Feb 2010 22:18:37 +0000 (23:18 +0100)]
Add modinfo for vmware_drv.so

14 years agoAdd a chain loading module to load new vmwgfx driver if kernel module is loaded
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

14 years agoUpdate Sun license notices to current X.Org standard form
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>
14 years agoconfigure.ac: remove unused sdkdir=$(pkg-config...) statement
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>
14 years agoBump for 10.16.9 release. xf86-video-vmware-10.16.9
Michel Dänzer [Tue, 29 Dec 2009 16:53:35 +0000 (17:53 +0100)]
Bump for 10.16.9 release.

14 years agoVMWAREComposite: Only hide cursor if source picture is backed by drawable.
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 .

14 years agovmware: Fix crash with xserver >= 1.7.
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 .

14 years agoMakefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
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.

14 years agoINSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
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

14 years agoINSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
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.

14 years agoSeveral driver modules do not have a ChangeLog target in Makefile.am #23814
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

14 years ago.gitignore: use common defaults with custom section # 24239
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.

14 years ago.gitignore: use common defaults with custom section # 24239
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.

14 years agoBump fo 10.16.8 Release xf86-video-vmware-10.16.8
Philip Langdale [Wed, 9 Sep 2009 05:21:33 +0000 (22:21 -0700)]
Bump fo 10.16.8 Release

14 years agoxf86-video-vmware: Remove unused .cvsignore file #23776
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>
15 years agovmware: change to using ABI version check
Dave Airlie [Tue, 28 Jul 2009 05:22:42 +0000 (15:22 +1000)]
vmware: change to using ABI version check

15 years agovmware: fix resource removal properly
Dave Airlie [Tue, 28 Jul 2009 04:11:59 +0000 (14:11 +1000)]
vmware: fix resource removal properly

15 years agovmware: update for resources/RAC API removal
Dave Airlie [Tue, 28 Jul 2009 03:32:41 +0000 (13:32 +1000)]
vmware: update for resources/RAC API removal

15 years agoBump for 10.16.7 Release. xf86-video-vmware-10.16.7
Philip Langdale [Tue, 21 Jul 2009 01:03:47 +0000 (18:03 -0700)]
Bump for 10.16.7 Release.

15 years ago An imperfect fix for Xinerama state changes without a mode change
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.

15 years agoFix black screen after resume from hibernate.
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.

15 years agoBump for 10.16.6 release xf86-video-vmware-10.16.6
Philip Langdale [Tue, 12 May 2009 23:48:43 +0000 (16:48 -0700)]
Bump for 10.16.6 release

15 years agoBetter cursor size limit and explanation
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.

15 years agoAllow cursor updates while unhidden
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.

15 years agoUnbreak vmwarectrl setres
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.

15 years agoFix dynamic mode edge cases
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.

15 years agoUpdate README
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.

15 years agoAutomatically add modelines for the driver's built-in set of modes.
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.

15 years agoRemove xorgconfig & xorgcfg from See Also list in man page
Alan Coopersmith [Sat, 10 Jan 2009 00:39:07 +0000 (16:39 -0800)]
Remove xorgconfig & xorgcfg from See Also list in man page

15 years agoBump version for 10.16.5 release. xf86-video-vmware-10.16.5
Philip Langdale [Tue, 19 Aug 2008 18:23:44 +0000 (11:23 -0700)]
Bump version for 10.16.5 release.

15 years agoAdd RegionEqual function for older XFree86 versions.
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.

16 years agoPrepare for 10.16.4 release. xf86-video-vmware-10.16.4
Philip Langdale [Mon, 21 Jul 2008 22:26:01 +0000 (15:26 -0700)]
Prepare for 10.16.4 release.

16 years agoVideo Overlay: Handle clipping correctly with AutoPaint colorkey.
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.

16 years agoPrepare for 10.16.3 xf86-video-vmware-10.16.3
Philip Langdale [Fri, 18 Jul 2008 21:03:09 +0000 (14:03 -0700)]
Prepare for 10.16.3

Bump up version numbers.

16 years agoVideo Overlay: Add XV_AUTOPAINT_COLORKEY capability to the Xv extension of Linux...
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.

16 years agoTrivial fix: Delete ASSERT() statement
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.

16 years agoFix video overlay offscreen allocation bug
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.

16 years agoPrepare for 10.16.2 xf86-video-vmware-10.16.2
Vinay Bondhugula [Thu, 12 Jun 2008 21:34:30 +0000 (17:34 -0400)]
Prepare for 10.16.2

Bump up version numbers.

16 years agoFix VMWARE_CTRL and Xinerama Initialization
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.

16 years agoMore xorg and xfree86 backwards compatibility
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.

16 years agoChange // comments to /* xf86-video-vmware-10.16.1
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.

16 years agoCompile warning fixes
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.

16 years agoBump version to 10.16.1 in configure.ac
Vinay Bondhugula [Fri, 18 Apr 2008 00:54:23 +0000 (20:54 -0400)]
Bump version to 10.16.1 in configure.ac

The previous change didn't bump up the version in configure.ac.

16 years agoPrepare for 10.16.1
Vinay Bondhugula [Fri, 18 Apr 2008 00:39:02 +0000 (20:39 -0400)]
Prepare for 10.16.1

Update the modinfo section and make a configure.ac fix.

16 years agoFix build for all modular versions of Xorg
Vinay Bondhugula [Thu, 17 Apr 2008 23:16:48 +0000 (19:16 -0400)]
Fix build for all modular versions of Xorg

This change makes the video driver compile with Xorg 7.0. There are a couple of
trivial changes that bring down the maximum Xserver version down to 2.0. Hacky,
but good enough for now.

16 years agoSend down guest display topology
Vinay Bondhugula [Thu, 27 Mar 2008 01:32:47 +0000 (21:32 -0400)]
Send down guest display topology

Send down the Xinerama topology from the guest down to the host, by setting
display topology registers in the SVGA device.

16 years agovmware 10.16.0 xf86-video-vmware-10.16.0
Adam Jackson [Wed, 19 Mar 2008 21:03:18 +0000 (17:03 -0400)]
vmware 10.16.0

16 years agoFix distcheck.
Adam Jackson [Wed, 19 Mar 2008 21:00:41 +0000 (17:00 -0400)]
Fix distcheck.

16 years agoVideo Overlay: Source video parameters
Bankim Bhavsar [Fri, 14 Mar 2008 16:42:40 +0000 (12:42 -0400)]
Video Overlay: Source video parameters

This patch adds parameters to the source video frame.  Applications can request
only a subset of the source video frame to be displayed. These parameters are
srcX, srcY, srcWidth and srcHeight. width and height represent the entire
source video frame.

16 years agoMakefile.am: nuke RCS Id
Matthieu Herrb [Sat, 8 Mar 2008 23:08:32 +0000 (00:08 +0100)]
Makefile.am: nuke RCS Id

16 years agoXv extension for VMware's video driver
Bankim Bhavsar [Thu, 24 Jan 2008 06:13:07 +0000 (22:13 -0800)]
Xv extension for VMware's video driver

This patch implements the Xv extension for VMware's X video driver.

The Xv specification can be found here
http://www.xfree86.org/current/DESIGN16.html

I've written a trivial offscreen memory manager that allocates memory from the
bottom part of the Video RAM and it can handle only 1 video-stream. Eventually
we intend to support upto 32 video-streams (there is already support for
multiple video streams in respective backends).

16 years agoTrivial libpciaccess related fix
Vinay [Sat, 19 Jan 2008 16:39:24 +0000 (08:39 -0800)]
Trivial libpciaccess related fix

Fix VMWAREUnmapMem to correctly unmap memory for the libpciaccess case.

16 years agoPort to libpciaccess.
Vinay Bondhugula [Mon, 8 Oct 2007 17:54:04 +0000 (10:54 -0700)]
Port to libpciaccess.

16 years agoUpdate for 10.15.2 release vmware-10_15_2
Philip Langdale [Tue, 25 Sep 2007 23:06:38 +0000 (16:06 -0700)]
Update for 10.15.2 release