Add CpTag to CreateCustomResource

This commit is contained in:
johnmach 2021-12-04 16:40:46 +05:30 committed by GitHub
parent 45cf47788b
commit 6f19987ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,7 @@ GMM_STATUS GMM_STDCALL GmmLib::GmmResourceInfoCommon::CreateCustomRes(Context &G
Surf.Alignment.BaseAlignment = CreateParams.BaseAlignment; Surf.Alignment.BaseAlignment = CreateParams.BaseAlignment;
Surf.MaxLod = 1; Surf.MaxLod = 1;
Surf.ArraySize = 1; Surf.ArraySize = 1;
Surf.CpTag = CreateParams.CpTag;
#if(_DEBUG || _RELEASE_INTERNAL) #if(_DEBUG || _RELEASE_INTERNAL)
Surf.Platform = GetGmmLibContext()->GetPlatformInfo().Platform; Surf.Platform = GetGmmLibContext()->GetPlatformInfo().Platform;

View File

@ -361,6 +361,7 @@ typedef struct GMM_RESCREATE_CUSTOM_PARAMS__REC
}PlaneOffset; }PlaneOffset;
uint32_t NoOfPlanes; uint32_t NoOfPlanes;
uint32_t CpTag;
}GMM_RESCREATE_CUSTOM_PARAMS; }GMM_RESCREATE_CUSTOM_PARAMS;
//=========================================================================== //===========================================================================