]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
vmwgfx: Switch to VGA when we drop master and vmwgfx fbdev is not active
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 31 Aug 2011 07:42:52 +0000 (07:42 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Sep 2011 08:38:00 +0000 (09:38 +0100)
commit05730b32a78dab4bed8fb7ccc64c53d9fcf31e9d
tree0c01aee6881e52d22c727284e18e2efd3dd31592
parentbe38ab6ea7b0de0542a0ff78690d63bb22f66a4d
vmwgfx: Switch to VGA when we drop master and vmwgfx fbdev is not active

Previously this was not done when any 3D resource was active,
since that meant disabling the fifo with all 3D state lost.
Now, if there are still 3D resources active, we use the svga hide feature.

This fixes X server VT switching with 3D enabled.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c