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_fifo.c | |
parent | 50ec3b7c35fda131e92abc6f9d93a230b7e009eb (diff) | |
download | talos-obmc-linux-7704befbd599e9c9524f640e14658ca8ed9d8717.tar.gz talos-obmc-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_fifo.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c index 01feb48af333..f7d5f70b52dd 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c @@ -98,8 +98,7 @@ int vmw_fifo_init(struct vmw_private *dev_priv, struct vmw_fifo_state *fifo) (unsigned int) min, (unsigned int) fifo->capabilities); - dev_priv->fence_seq = (uint32_t) -100; - dev_priv->last_read_sequence = (uint32_t) -100; + dev_priv->fence_seq = dev_priv->last_read_sequence; iowrite32(dev_priv->last_read_sequence, fifo_mem + SVGA_FIFO_FENCE); return vmw_fifo_send_fence(dev_priv, &dummy); |