drm/vmwgfx: Use TTM handles instead of SIDs as user-space surface handles.
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 22 Dec 2009 15:53:41 +0000 (16:53 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Dec 2009 00:06:24 +0000 (10:06 +1000)
commit7a73ba7469cbea631050094fd14f73acebb97cf9
tree2c1bc2b28a395578967343e14a3a4b90c66e55f5
parent3d3a5b3290043618e8409f3fb68a63de6156fdd4
drm/vmwgfx: Use TTM handles instead of SIDs as user-space surface handles.

Improve the command verifier to catch all occurences of surface handles,
and translate to SIDs.

This way DMA buffers and 3D surfaces share a common handle space,
which makes it possible for the kms code to differentiate.

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