diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-25 07:00:04 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-25 07:53:13 -0500 |
commit | 9fa4973e91be3e5cb220f7d607c21bf6e82c52d1 (patch) | |
tree | 499a5df69bf7a05e6a9d1f6236559d096d34d5c2 /drivers/gpu/drm/i915/i915_request.c | |
parent | e1a73a54a96e80dc6009e73c9209e4f81ae22285 (diff) |
drm/i915: Remove manual breadcumb counting
Now that we know we measure the size of the engine->emit_breadcrumb()
correctly, we can remove the previous manual counting.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190125120005.25191-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index f941e40fd373..ddc35e9dc0c0 100644 --- a/drivers/gpu/drm/i915/i915_request.c +++ b/drivers/gpu/drm/i915/i915_request.c | |||
@@ -650,7 +650,7 @@ i915_request_alloc(struct intel_engine_cs *engine, struct i915_gem_context *ctx) | |||
650 | * around inside i915_request_add() there is sufficient space at | 650 | * around inside i915_request_add() there is sufficient space at |
651 | * the beginning of the ring as well. | 651 | * the beginning of the ring as well. |
652 | */ | 652 | */ |
653 | rq->reserved_space = 2 * engine->emit_breadcrumb_sz * sizeof(u32); | 653 | rq->reserved_space = 2 * engine->emit_breadcrumb_dw * sizeof(u32); |
654 | 654 | ||
655 | /* | 655 | /* |
656 | * Record the position of the start of the request so that | 656 | * Record the position of the start of the request so that |
@@ -901,7 +901,7 @@ void i915_request_add(struct i915_request *request) | |||
901 | * GPU processing the request, we never over-estimate the | 901 | * GPU processing the request, we never over-estimate the |
902 | * position of the ring's HEAD. | 902 | * position of the ring's HEAD. |
903 | */ | 903 | */ |
904 | cs = intel_ring_begin(request, engine->emit_breadcrumb_sz); | 904 | cs = intel_ring_begin(request, engine->emit_breadcrumb_dw); |
905 | GEM_BUG_ON(IS_ERR(cs)); | 905 | GEM_BUG_ON(IS_ERR(cs)); |
906 | request->postfix = intel_ring_offset(request, cs); | 906 | request->postfix = intel_ring_offset(request, cs); |
907 | 907 | ||