Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269705
b: refs/heads/master
c: 6070e9f
h: refs/heads/master
i:
  269703: b33854d
v: v3
  • Loading branch information
Jakob Bornecrantz authored and Dave Airlie committed Oct 5, 2011
1 parent f16ee14 commit d761c76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f898d99de9248d421615205e81c468b4d8117e0
refs/heads/master: 6070e9fa6d12d465c65a172a2b1c752ebedc5937
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,9 @@ static int vmw_resize_cmd_bounce(struct vmw_sw_context *sw_context,
* Creates a fence object and submits a command stream marker.
* If this fails for some reason, We sync the fifo and return NULL.
* It is then safe to fence buffers with a NULL pointer.
*
* If @p_handle is not NULL @file_priv must also not be NULL. Creates
* a userspace handle if @p_handle is not NULL, otherwise not.
*/

int vmw_execbuf_fence_commands(struct drm_file *file_priv,
Expand All @@ -692,6 +695,8 @@ int vmw_execbuf_fence_commands(struct drm_file *file_priv,
int ret;
bool synced = false;

/* p_handle implies file_priv. */
BUG_ON(p_handle != NULL && file_priv == NULL);

ret = vmw_fifo_send_fence(dev_priv, &sequence);
if (unlikely(ret != 0)) {
Expand Down

0 comments on commit d761c76

Please sign in to comment.