Skip to content
Snippets Groups Projects
Commit 8d6cae6f authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/selftests: Mark the mock ring->vma as being in the GGTT


The ringbuffer's vma is expected to be in the GGTT and that is now being
checked, so make sure the mocked ring declares it so.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200215205927.4170144-1-chris@chris-wilson.co.uk
parent cf274daa
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,9 @@ static struct intel_ring *mock_ring(struct intel_engine_cs *engine) ...@@ -65,6 +65,9 @@ static struct intel_ring *mock_ring(struct intel_engine_cs *engine)
return NULL; return NULL;
} }
i915_active_init(&ring->vma->active, NULL, NULL); i915_active_init(&ring->vma->active, NULL, NULL);
__set_bit(I915_VMA_GGTT_BIT, __i915_vma_flags(ring->vma));
__set_bit(DRM_MM_NODE_ALLOCATED_BIT, &ring->vma->node.flags);
ring->vma->node.size = sz;
intel_ring_update_space(ring); intel_ring_update_space(ring);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment