]> Pileus Git - ~andy/linux/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)
commit4b0c82529b92cda4723cf1d09e1e2ee9b9ae96f1
treee1c6a7028a0f4b3b3387ef4c582ccf075b30ac9d
parent45db98e54242f3ae94bdcfbfe754e743252eb168
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