drm/vmwgfx: Fix compat mode shader operation
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 4 Apr 2019 13:25:43 +0000 (13:25 +0000)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 21 May 2019 08:23:09 +0000 (10:23 +0200)
commite41c20cf50a8a7d0dfa337a7530590aacef4193b
tree6a7cef5a83e5d35c89a45711d2f4a09b737852f6
parent8407f8a1d940fe28c4243ad4f0cb6a44dcee88f6
drm/vmwgfx: Fix compat mode shader operation

In compat mode, we allowed host-backed user-space with guest-backed
kernel / device. In this mode, set shader commands was broken since
no relocations were emitted. Fix this.

Cc: <stable@vger.kernel.org>
Fixes: e8c66efbfe3a ("drm/vmwgfx: Make user resource lookups reference-free during validation")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c