]> git.baikalelectronics.ru Git - kernel.git/commit
vmwgfx: Handle device surface memory limit
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 4 Oct 2011 18:13:33 +0000 (20:13 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 5 Oct 2011 09:17:31 +0000 (10:17 +0100)
commit439907483ac3d670ad32578192b3dc88683b4b88
treea4af9f982e0c75e19b7e31bfdbaebc30e25b0bdc
parent5bea8d47e3b37b543f2869a0bfa5e5efc02a712c
vmwgfx: Handle device surface memory limit

Make surfaces swappable. Make sure we honor the maximum amount of surface
memory the device accepts. This is done by potentially reading back surface
contents not used by the current command submission and storing it
locally in buffer objects.

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_buffer.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c