Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bf4d575 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Stop clearing i915_ggtt_view



As we now use a compact memcmp in i915_vma_compare(), we can forgo
clearing the entire view and only set the precise parameters used in
this view.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170114002827.31315-4-chris@chris-wilson.co.uk
parent 992e418d
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1759,7 +1759,6 @@ compute_partial_view(struct drm_i915_gem_object *obj,
	if (i915_gem_object_is_tiled(obj))
	if (i915_gem_object_is_tiled(obj))
		chunk = roundup(chunk, tile_row_pages(obj));
		chunk = roundup(chunk, tile_row_pages(obj));


	memset(&view, 0, sizeof(view));
	view.type = I915_GGTT_VIEW_PARTIAL;
	view.type = I915_GGTT_VIEW_PARTIAL;
	view.params.partial.offset = rounddown(page_offset, chunk);
	view.params.partial.offset = rounddown(page_offset, chunk);
	view.params.partial.size =
	view.params.partial.size =