]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fix a surface reference corner-case in legacy emulation mode
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 12 Mar 2014 19:42:31 +0000 (20:42 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 13 Mar 2014 06:51:32 +0000 (07:51 +0100)
commitbc19bae32e973146ed23c4a75a943f64e7b7addb
treee1c6a7028a0f4b3b3387ef4c582ccf075b30ac9d
parentc7305718106c1b23cc3c63f2af77e4912dfe22a6
drm/vmwgfx: Fix a surface reference corner-case in legacy emulation mode

If running on a gb-object capable device with a non-gb capable surface
exporter (X server) and a gb capable surface referencing client (GL driver),
the referencing client expects to find a shareable backing buffer attached to
the surface at reference time. This may not be the case if the surface has
not yet been validated. This would cause the surface reference IOCTL to
return an error.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c