]> 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)
commit0611a02819fdd0c404c60b0fff5d87b83674f311
treea4af9f982e0c75e19b7e31bfdbaebc30e25b0bdc
parentdfb4fca63b8f2850b945836b4620ce20c14ebda8
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