diff options
author | Thomas Hellstrom | 2010-01-13 22:28:38 +0100 |
---|---|---|
committer | Dave Airlie | 2010-01-14 03:18:02 +0100 |
commit | 7704befbd599e9c9524f640e14658ca8ed9d8717 (patch) | |
tree | 9ee43b851160e50234d8bd67967e7eb07104d8b9 /drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |
parent | drm/vmwgfx: Fix an error path causing an oops. (diff) | |
download | kernel-qcow2-linux-7704befbd599e9c9524f640e14658ca8ed9d8717.tar.gz kernel-qcow2-linux-7704befbd599e9c9524f640e14658ca8ed9d8717.tar.xz kernel-qcow2-linux-7704befbd599e9c9524f640e14658ca8ed9d8717.zip |
drm/vmwgfx: Make fence sequences continous across a VT switch.
A vt switch in stealth mode would take down the FIFO, and re-
initialize fence sequence numbers. This patch
saves the current state of the fence sequence when the FIFO is
disabled.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 1db1ef30be2b..70e4f5f0c122 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -217,6 +217,7 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset) dev_priv->dev = dev; dev_priv->vmw_chipset = chipset; + dev_priv->last_read_sequence = (uint32_t) -100; mutex_init(&dev_priv->hw_mutex); mutex_init(&dev_priv->cmdbuf_mutex); rwlock_init(&dev_priv->resource_lock); |