File: device_command_stream_fixture_context.h

package info (click to toggle)
intel-compute-runtime 25.44.36015.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 79,632 kB
  • sloc: cpp: 931,547; lisp: 2,074; sh: 719; makefile: 162; python: 21
file content (28 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (C) 2022-2023 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#pragma once

#include "shared/test/common/libult/linux/drm_mock_prelim_context.h"

struct DrmMockCustomPrelimContext {
    // PRELIM_DRM_IOCTL_I915_GEM_CREATE_EXT
    uint64_t createExtSize = 0;
    uint32_t createExtHandle = 0;
    uint64_t createExtExtensions = 0;

    // PRELIM_DRM_IOCTL_I915_GEM_WAIT_USER_FENCE
    WaitUserFence receivedGemWaitUserFence{};
    uint32_t gemWaitUserFenceCalled = 0;

    // PRELIM_DRM_I915_GEM_EXECBUFFER_EXT_USER_FENCE
    uint64_t completionAddress = 0;
    uint64_t completionValue = 0;

    int ioctlExtra(DrmIoctl request, void *arg);
    void execBufferExtensions(void *arg);
};