Debian Codegraph @

shared/wsl_compute_helper/source/gmm_resource_info_struct.h

raw
1 /*
2 * Copyright (C) 2021-2023 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #pragma once
9
10 // gmm enforces include order
11 // clang-format off
12 #include "shared/source/os_interface/windows/windows_wrapper.h"
13 #ifdef WDDM_LINUX
14 # include "umKmInc/sharedata.h"
15 # ifdef LHDM
16 # undef LHDM
17 # define RESTORE_LHDM
18 # endif
19 # undef WDDM_LINUX
20 # define RESTORE_WDDM_LINUX
21 # define UFO_PORTABLE_COMPILER_H
22 # define UFO_PORTABLE_WINDEF_H
23 #endif
24 #include "umKmInc/sharedata.h"
25
26 #include "External/Common/GmmCommonExt.h"
27 #include "External/Common/GmmUtil.h"
28 #include "External/Common/GmmResourceFlags.h"
29 #include "External/Common/GmmCachePolicy.h"
30 #include "External/Common/GmmCachePolicyExt.h"
31 #include "External/Common/GmmResourceInfoExt.h"
32 #include "External/Common/GmmPlatformExt.h"
33 #include "External/Common/GmmTextureExt.h"
34 #include "External/Common/GmmInfoExt.h"
35 #include "External/Common/GmmResourceInfo.h"
36 // clang-format on
37
38 #ifdef RESTORE_WDDM_LINUX
39 #ifdef RESTORE_LHDM
40 #define LHDM 1
41 #endif
42 #define WDDM_LINUX 1
43 #ifndef GMM_ESCAPE_HANDLE
44 #define GMM_ESCAPE_HANDLE D3DKMT_HANDLE
45 #endif
46 #ifndef GMM_ESCAPE_FUNC_TYPE
47 #define GMM_ESCAPE_FUNC_TYPE PFND3DKMT_ESCAPE
48 #endif
49 #ifndef GMM_HANDLE
50 #define GMM_HANDLE D3DKMT_HANDLE
51 #endif
52 #endif // RESTORE_WDDM_LINUX
53
54 struct GmmResourceInfoCommonStruct {
55 GMM_CLIENT ClientType;
56 GMM_TEXTURE_INFO Surf;
57 GMM_TEXTURE_INFO AuxSurf;
58 GMM_TEXTURE_INFO AuxSecSurf;
59
60 uint32_t RotateInfo;
61 GMM_EXISTING_SYS_MEM ExistingSysMem;
62 GMM_GFX_ADDRESS SvmAddress;
63
64 uint64_t pPrivateData;
65
66 GMM_MULTI_TILE_ARCH MultiTileArch;
67 };
68
69 struct GmmResourceInfoWinStruct {
70 struct GmmResourceInfoCommonStruct GmmResourceInfoCommon;
71 };