diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-04 05:45:51 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-05 06:03:12 -0400 |
commit | 1823521d2b2fa614e7ad95fdc8a0f59e571f37ce (patch) | |
tree | b79efcb6426e31a9584c330a8c670646cdb443d9 /drivers/gpu/drm/i915/i915_gem.c | |
parent | b315fedf01ac717f1c2a5eaa6959335b6baf7150 (diff) |
drm/i915: Rename ring->outstanding_lazy_request
Prior to preallocating an request for lazy emission, rename the existing
field to make way (and differentiate the seqno from the request struct).
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index fdeecae058e1..858e78886637 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -964,7 +964,7 @@ i915_gem_check_olr(struct intel_ring_buffer *ring, u32 seqno) | |||
964 | BUG_ON(!mutex_is_locked(&ring->dev->struct_mutex)); | 964 | BUG_ON(!mutex_is_locked(&ring->dev->struct_mutex)); |
965 | 965 | ||
966 | ret = 0; | 966 | ret = 0; |
967 | if (seqno == ring->outstanding_lazy_request) | 967 | if (seqno == ring->outstanding_lazy_seqno) |
968 | ret = i915_add_request(ring, NULL); | 968 | ret = i915_add_request(ring, NULL); |
969 | 969 | ||
970 | return ret; | 970 | return ret; |
@@ -2094,7 +2094,7 @@ int __i915_add_request(struct intel_ring_buffer *ring, | |||
2094 | } | 2094 | } |
2095 | 2095 | ||
2096 | trace_i915_gem_request_add(ring, request->seqno); | 2096 | trace_i915_gem_request_add(ring, request->seqno); |
2097 | ring->outstanding_lazy_request = 0; | 2097 | ring->outstanding_lazy_seqno = 0; |
2098 | 2098 | ||
2099 | if (!dev_priv->ums.mm_suspended) { | 2099 | if (!dev_priv->ums.mm_suspended) { |
2100 | i915_queue_hangcheck(ring->dev); | 2100 | i915_queue_hangcheck(ring->dev); |