2 * SPDX-License-Identifier: MIT
4 * Copyright © 2017-2018 Intel Corporation
7 #include "../intel_timeline.h"
9 #include "mock_timeline.h"
11 void mock_timeline_init(struct intel_timeline
*timeline
, u64 context
)
14 timeline
->fence_context
= context
;
16 mutex_init(&timeline
->mutex
);
18 INIT_ACTIVE_FENCE(&timeline
->last_request
);
19 INIT_LIST_HEAD(&timeline
->requests
);
21 i915_syncmap_init(&timeline
->sync
);
23 INIT_LIST_HEAD(&timeline
->link
);
26 void mock_timeline_fini(struct intel_timeline
*timeline
)
28 i915_syncmap_free(&timeline
->sync
);