Lines Matching refs:CreateParams

99 GMM_STATUS GMM_STDCALL GmmLib::GmmResourceInfoCommon::Create(GMM_RESCREATE_PARAMS &CreateParams)  in Create()  argument
104 …= Create(*(reinterpret_cast<GMM_CLIENT_CONTEXT *>(pClientContext)->GetLibContext()), CreateParams); in Create()
119 …ourceInfoCommon::CreateCustomRes(Context &GmmLibContext, GMM_RESCREATE_CUSTOM_PARAMS &CreateParams) in CreateCustomRes() argument
133 if((CreateParams.Format > GMM_FORMAT_INVALID) && in CreateCustomRes()
134 (CreateParams.Format < GMM_RESOURCE_FORMATS)) in CreateCustomRes()
136 …BitsPerPixel = GetGmmLibContext()->GetPlatformInfo().FormatTable[CreateParams.Format].Element.Bits… in CreateCustomRes()
148 Surf.Type = CreateParams.Type; in CreateCustomRes()
149 Surf.Format = CreateParams.Format; in CreateCustomRes()
150 Surf.BaseWidth = CreateParams.BaseWidth64; in CreateCustomRes()
151 Surf.BaseHeight = CreateParams.BaseHeight; in CreateCustomRes()
152 Surf.Flags = CreateParams.Flags; in CreateCustomRes()
153 Surf.CachePolicy.Usage = CreateParams.Usage; in CreateCustomRes()
154 Surf.Pitch = CreateParams.Pitch; in CreateCustomRes()
155 Surf.Size = CreateParams.Size; in CreateCustomRes()
156 Surf.Alignment.BaseAlignment = CreateParams.BaseAlignment; in CreateCustomRes()
159 Surf.CpTag = CreateParams.CpTag; in CreateCustomRes()
171 pTextureCalc->SetPlanarOffsetInfo(&Surf, CreateParams); in CreateCustomRes()
243 …eInfoCommon::CreateCustomRes_2(Context &GmmLibContext, GMM_RESCREATE_CUSTOM_PARAMS_2 &CreateParams) in CreateCustomRes_2() argument
258 if((CreateParams.Format > GMM_FORMAT_INVALID) && in CreateCustomRes_2()
259 (CreateParams.Format < GMM_RESOURCE_FORMATS)) in CreateCustomRes_2()
261 …BitsPerPixel = GetGmmLibContext()->GetPlatformInfo().FormatTable[CreateParams.Format].Element.Bits… in CreateCustomRes_2()
273 Surf.Type = CreateParams.Type; in CreateCustomRes_2()
274 Surf.Format = CreateParams.Format; in CreateCustomRes_2()
275 Surf.BaseWidth = CreateParams.BaseWidth64; in CreateCustomRes_2()
276 Surf.BaseHeight = CreateParams.BaseHeight; in CreateCustomRes_2()
277 Surf.Flags = CreateParams.Flags; in CreateCustomRes_2()
278 Surf.CachePolicy.Usage = CreateParams.Usage; in CreateCustomRes_2()
279 Surf.Pitch = CreateParams.Pitch; in CreateCustomRes_2()
280 Surf.Size = CreateParams.Size; in CreateCustomRes_2()
281 Surf.Alignment.BaseAlignment = CreateParams.BaseAlignment; in CreateCustomRes_2()
284 Surf.CpTag = CreateParams.CpTag; in CreateCustomRes_2()
296 pTextureCalc->SetPlanarOffsetInfo_2(&Surf, CreateParams); in CreateCustomRes_2()
362 if(GmmIsPlanar(CreateParams.Format) || GmmIsUVPacked(CreateParams.Format)) in CreateCustomRes_2()
364 … AuxSurf.OffsetInfo.Plane.X[GMM_PLANE_Y] = CreateParams.AuxSurf.PlaneOffset.X[GMM_PLANE_Y]; in CreateCustomRes_2()
365 … AuxSurf.OffsetInfo.Plane.Y[GMM_PLANE_Y] = CreateParams.AuxSurf.PlaneOffset.Y[GMM_PLANE_Y]; in CreateCustomRes_2()
366 … AuxSurf.OffsetInfo.Plane.X[GMM_PLANE_U] = CreateParams.AuxSurf.PlaneOffset.X[GMM_PLANE_U]; in CreateCustomRes_2()
367 … AuxSurf.OffsetInfo.Plane.Y[GMM_PLANE_U] = CreateParams.AuxSurf.PlaneOffset.Y[GMM_PLANE_U]; in CreateCustomRes_2()
368 … AuxSurf.OffsetInfo.Plane.X[GMM_PLANE_V] = CreateParams.AuxSurf.PlaneOffset.X[GMM_PLANE_V]; in CreateCustomRes_2()
369 … AuxSurf.OffsetInfo.Plane.Y[GMM_PLANE_V] = CreateParams.AuxSurf.PlaneOffset.Y[GMM_PLANE_V]; in CreateCustomRes_2()
370 AuxSurf.OffsetInfo.Plane.ArrayQPitch = CreateParams.AuxSurf.Size; in CreateCustomRes_2()
373 AuxSurf.Size = CreateParams.AuxSurf.Size; in CreateCustomRes_2()
375 AuxSurf.Pitch = CreateParams.AuxSurf.Pitch; in CreateCustomRes_2()
380 AuxSurf.Alignment.BaseAlignment = CreateParams.AuxSurf.BaseAlignment; //TODO: TiledResource? in CreateCustomRes_2()
418 …L GmmLib::GmmResourceInfoCommon::Create(Context &GmmLibContext, GMM_RESCREATE_PARAMS &CreateParams) in Create() argument
430 if(CreateParams.Flags.Info.ExistingSysMem && in Create()
431 (CreateParams.Flags.Info.TiledW || in Create()
432 CreateParams.Flags.Info.TiledX || in Create()
433 GMM_IS_4KB_TILE(CreateParams.Flags) || in Create()
434 GMM_IS_64KB_TILE(CreateParams.Flags))) in Create()
441 if(!CopyClientParams(CreateParams)) in Create()
458 if(!CreateParams.Flags.Info.ExistingSysMem) in Create()
461 if(!CreateParams.Flags.Info.ExistingSysMem && in Create()
462 (CreateParams.NoGfxMemory || CreateParams.Flags.Gpu.TiledResource)) in Create()
572 (CreateParams.pExistingSysMem && in Create()
573 CreateParams.ExistingSysMemSize) ? in Create()
580 (((CreateParams.pExistingSysMem & (PAGE_SIZE - 1)) == 0) && in Create()
581 … (((CreateParams.pExistingSysMem + CreateParams.ExistingSysMemSize) & (PAGE_SIZE - 1)) == 0)) ? in Create()
599 if(CreateParams.pExistingSysMem && in Create()
600 CreateParams.ExistingSysMemSize) in Create()
605 ExistingSysMem.pExistingSysMem = CreateParams.pExistingSysMem; in Create()
606 ExistingSysMem.Size = CreateParams.ExistingSysMemSize; in Create()
629 ExistingSysMem.pGfxAlignedVirtAddress = CreateParams.pExistingSysMem; in Create()
633 (CreateParams.pExistingSysMem + ExistingSysMem.Size)) in Create()
676 if(CreateParams.pPreallocatedResInfo) in Create()