diff options
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 | ||