File tree Expand file tree Collapse file tree 6 files changed +23
-4
lines changed Expand file tree Collapse file tree 6 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ cmake_minimum_required(VERSION 3.5)
24
24
project (igfx_gmmumd )
25
25
26
26
# GmmLib Api Version used for so naming
27
- set (GMMLIB_API_MAJOR_VERSION 2 )
27
+ set (GMMLIB_API_MAJOR_VERSION 3 )
28
28
set (GMMLIB_API_MINOR_VERSION 0 )
29
29
30
30
if (NOT DEFINED MAJOR_VERSION )
31
- set (MAJOR_VERSION 2 )
31
+ set (MAJOR_VERSION 3 )
32
32
endif ()
33
33
34
34
if (NOT DEFINED MINOR_VERSION )
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ bool GmmLib::GmmResourceInfoCommon::CopyClientParams(GMM_RESCREATE_PARAMS &Creat
85
85
Surf.MSAA .NumSamples = GFX_MAX (Surf.MSAA .NumSamples , 1 );
86
86
Surf.MaximumRenamingListLength = CreateParams.MaximumRenamingListLength ;
87
87
Surf.OverridePitch = CreateParams.OverridePitch ;
88
+ Surf.CpTag = CreateParams.CpTag ;
88
89
89
90
Surf.Flags .Info .__PreWddm2SVM =
90
91
Surf.Flags .Info .SVM &&
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ OTHER DEALINGS IN THE SOFTWARE.
29
29
#if defined(_WIN64 )
30
30
#define GMM_UMD_DLL "igdgmm64.dll"
31
31
#else
32
- #define GMM_UMD_DLL "libigdgmm.so.2 "
32
+ #define GMM_UMD_DLL "libigdgmm.so.3 "
33
33
#endif
34
34
#else
35
35
#define GMM_ENTRY_NAME "_OpenGmm@4"
@@ -40,6 +40,6 @@ OTHER DEALINGS IN THE SOFTWARE.
40
40
#if defined(_WIN32 )
41
41
#define GMM_UMD_DLL "igdgmm32.dll"
42
42
#else
43
- #define GMM_UMD_DLL "libigdgmm.so.2 "
43
+ #define GMM_UMD_DLL "libigdgmm.so.3 "
44
44
#endif
45
45
#endif
Original file line number Diff line number Diff line change @@ -1132,6 +1132,22 @@ namespace GmmLib
1132
1132
return IsEncrypted;
1133
1133
}
1134
1134
1135
+ // ///////////////////////////////////////////////////////////////////////
1136
+ // / This function returns or sets the value of the Cp surface tag
1137
+ // / associated with the given GMM resource within same process.
1138
+ // / @param[in] IsSet: true for updating tag in gmm
1139
+ // / @param[in] CpTag: Cp surface tag value
1140
+ // / @return current cp surface tag in gmm
1141
+ // ///////////////////////////////////////////////////////////////////////
1142
+ GMM_INLINE_VIRTUAL GMM_INLINE uint32_t GMM_STDCALL GetSetCpSurfTag (uint8_t IsSet, uint32_t CpTag)
1143
+ {
1144
+ if (IsSet)
1145
+ {
1146
+ Surf.CpTag = CpTag;
1147
+ }
1148
+ return Surf.CpTag ;
1149
+ }
1150
+
1135
1151
// ///////////////////////////////////////////////////////////////////////
1136
1152
// / Returns the size of the surface in StdLayout format
1137
1153
// / @return Size in bytes of Standard Layout version of surface.
Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ typedef struct GMM_RESCREATE_PARAMS_REC
235
235
GMM_RESOURCE_MSAA_INFO MSAA; // How to sample this resource for anti-alisaing.
236
236
237
237
GMM_RESOURCE_USAGE_TYPE Usage; // Intended use for this resource. See enumerated type.
238
+ uint32_t CpTag;
238
239
239
240
union
240
241
{
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ typedef struct GMM_TEXTURE_INFO_REC
136
136
uint32_t Depth;
137
137
uint32_t MaxLod;
138
138
uint32_t ArraySize;
139
+ uint32_t CpTag;
139
140
140
141
struct {
141
142
GMM_RESOURCE_USAGE_TYPE Usage;
You can’t perform that action at this time.
0 commit comments