]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/vmwgfx: Make buffer object lookups reference-free during validation
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 26 Sep 2018 14:27:54 +0000 (16:27 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 28 Sep 2018 06:57:08 +0000 (08:57 +0200)
commitb139d43dacef688a4f46f29eef34409e950f7cef
tree0dfbe5af323d2b3c7a769c0120d21d1aef23a8d6
parentb733bc2e0accd60af23719fd1fc77941c11059f4
drm/vmwgfx: Make buffer object lookups reference-free during validation

Make the process of looking up a buffer object and adding it to the
validation list reference-free unless when it's actually added to the
validation list where a single reference is taken.
This saves two locked atomic operations per command stream buffer object
handle lookup.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c