]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit558d75d682ad2a8cadd9cdf3dade1aaec0d40a93
tree2c1bc2b28a395578967343e14a3a4b90c66e55f5
parent3457a3be70e5f77fa34314a52c01e846a9efbee8
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