Commit 76c7d18b authored by Thomas Hellstrom's avatar Thomas Hellstrom

drm/vmwgfx: Don't commit staged bindings if execbuf fails

If execbuf fails and binding commands are never sent to the device,
don't commit the staged context bindings to the tracker.
Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: default avatarJakob Bornecrantz <jakob@vmware.com>
parent ef64cf9d
...@@ -114,8 +114,10 @@ static void vmw_resource_list_unreserve(struct list_head *list, ...@@ -114,8 +114,10 @@ static void vmw_resource_list_unreserve(struct list_head *list,
* persistent context binding tracker. * persistent context binding tracker.
*/ */
if (unlikely(val->staged_bindings)) { if (unlikely(val->staged_bindings)) {
if (!backoff) {
vmw_context_binding_state_transfer vmw_context_binding_state_transfer
(val->res, val->staged_bindings); (val->res, val->staged_bindings);
}
kfree(val->staged_bindings); kfree(val->staged_bindings);
val->staged_bindings = NULL; val->staged_bindings = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment