diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2010-01-13 22:28:38 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-01-14 12:18:02 +1000 |
commit | 7704befbd599e9c9524f640e14658ca8ed9d8717 (patch) | |
tree | 9ee43b851160e50234d8bd67967e7eb07104d8b9 /drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |
parent | 50ec3b7c35fda131e92abc6f9d93a230b7e009eb (diff) | |
download | talos-op-linux-7704befbd599e9c9524f640e14658ca8ed9d8717.tar.gz talos-op-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); |