Skip to content

Commit

Permalink
drm/i915: Remove unused intel_ringbuffer->ring_flag
Browse files Browse the repository at this point in the history
This can always be re-added should somebody find a use...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Sep 14, 2010
1 parent 890f335 commit 2b6efaa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1580,9 +1580,8 @@ i915_gem_process_flushing_list(struct drm_device *dev,
gpu_write_list) {
struct drm_gem_object *obj = &obj_priv->base;

if ((obj->write_domain & flush_domains) ==
obj->write_domain &&
obj_priv->ring->ring_flag == ring->ring_flag) {
if (obj->write_domain & flush_domains &&
obj_priv->ring == ring) {
uint32_t old_write_domain = obj->write_domain;

obj->write_domain = 0;
Expand Down
2 changes: 0 additions & 2 deletions drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,6 @@ struct intel_ring_buffer render_ring = {
.tail = PRB0_TAIL,
.start = PRB0_START
},
.ring_flag = I915_EXEC_RENDER,
.size = 32 * PAGE_SIZE,
.alignment = PAGE_SIZE,
.virtual_start = NULL,
Expand Down Expand Up @@ -843,7 +842,6 @@ struct intel_ring_buffer bsd_ring = {
.tail = BSD_RING_TAIL,
.start = BSD_RING_START
},
.ring_flag = I915_EXEC_BSD,
.size = 32 * PAGE_SIZE,
.alignment = PAGE_SIZE,
.virtual_start = NULL,
Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/i915/intel_ringbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ struct intel_ring_buffer {
u32 tail;
u32 start;
} regs;
unsigned int ring_flag;
unsigned long size;
unsigned int alignment;
void *virtual_start;
Expand Down

0 comments on commit 2b6efaa

Please sign in to comment.