Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148709
b: refs/heads/master
c: 5f26a2c
h: refs/heads/master
i:
  148707: 9921562
v: v3
  • Loading branch information
Chris Wilson authored and Eric Anholt committed Jun 9, 2009
1 parent 716f8db commit a5c4bbd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83d60795157c83389e6aaa0532d5e19afa976a24
refs/heads/master: 5f26a2c7ad6eba97141e8372f3def282f934b169
8 changes: 6 additions & 2 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3369,8 +3369,12 @@ i915_gem_execbuffer(struct drm_device *dev, void *data,

/* Set the pending read domains for the batch buffer to COMMAND */
batch_obj = object_list[args->buffer_count-1];
batch_obj->pending_read_domains = I915_GEM_DOMAIN_COMMAND;
batch_obj->pending_write_domain = 0;
if (batch_obj->pending_write_domain) {
DRM_ERROR("Attempting to use self-modifying batch buffer\n");
ret = -EINVAL;
goto err;
}
batch_obj->pending_read_domains |= I915_GEM_DOMAIN_COMMAND;

/* Sanity check the batch buffer, prior to moving objects */
exec_offset = exec_list[args->buffer_count - 1].offset;
Expand Down

0 comments on commit a5c4bbd

Please sign in to comment.