Lines Matching full:restrictions

68 /// Returns the restrictions that a particular resource must follow on a particular
71 /// @param[out] Restrictions: restrictions that this resource must adhere to
73 void GmmLib::GmmResourceInfoCommon::GetRestrictions(__GMM_BUFFER_TYPE &Restrictions) in GetRestrictions() argument
81 pTextureCalc->GetResRestrictions(&Surf, Restrictions); in GetRestrictions()
92 // Desc: This routine returns resource restrictions
97 // pRestrictions: ptr to restrictions
110 /// Returns the best restrictions by comparing two buffer types. Each buffer type
111 /// carries alignment and size restrictions.
113 /// @param[in] pFirstBuffer: Contains surface alignment and size restrictions
114 /// @param[in] pSecondBuffer: Contains surface alignment and size restrictions
116 /// @return Best Restrictions based on the two parameters passed
173 /// Returns restrictions for 1D, 2D, 3D textures depending on how the surface
176 /// @param[out] pBuff: Restrictions filled in this struct
185 // Impose zero restrictions. Ignore any other GPU usage flags in GetGenericRestrictions()
391 /// Internal function resets the restrictions and puts the allocation in invalid state
394 /// @param[in] pRestrictions: reset the restrictions to invalid state.
404 /// Internal function returns the best restrictions depending on how the surface may
408 /// @param[in] pRestrictions: Reference to surface alignment and size restrictions
422 /// Returns the restrictions that a particular resource must follow on a particular
425 /// @param[out] Restrictions: restrictions that this resource must adhere to
428 __GMM_BUFFER_TYPE &Restrictions) in GetResRestrictions() argument
449 ResetRestrictions(&Restrictions); //Set to Default in GetResRestrictions()
451 // Get worst case restrictions that match GPU flags set in resource in GetResRestrictions()
461 GetGenericRestrictions(pTexinfo, &Restrictions); in GetResRestrictions()
473 GetLinearRestrictions(pTexinfo, &Restrictions); in GetResRestrictions()
479 GetPrimaryRestrictions(pTexinfo, &Restrictions); in GetResRestrictions()
483 Restrictions = pPlatform->Nndi; in GetResRestrictions()
489 //displayable allocation. So get the restrictions accordingly in GetResRestrictions()
492 Restrictions = pPlatform->Overlay; in GetResRestrictions()
496 Restrictions = pPlatform->HardwareMBM; in GetResRestrictions()
508 Restrictions = pPlatform->Cursor; in GetResRestrictions()
512 Restrictions = pPlatform->NoRestriction; in GetResRestrictions()
516 GetGenericRestrictions(pTexinfo, &Restrictions); in GetResRestrictions()
520 Restrictions = pPlatform->Overlay; in GetResRestrictions()
524 GetGenericRestrictions(pTexinfo, &Restrictions); in GetResRestrictions()
532 Restrictions.Alignment = GFX_ALIGN(Restrictions.Alignment, GMM_KBYTE(32)); in GetResRestrictions()
537 Restrictions.Alignment = GFX_ALIGN(Restrictions.Alignment, GMM_KBYTE(64)); in GetResRestrictions()
544 Restrictions.Alignment = PAGE_SIZE; in GetResRestrictions()
545 Restrictions.PitchAlignment = PAGE_SIZE; in GetResRestrictions()
551 Restrictions.Alignment = GFX_ALIGN(Restrictions.Alignment, GMM_KBYTE(64)); in GetResRestrictions()
556 Restrictions.PitchAlignment = GFX_ALIGN(Restrictions.PitchAlignment, GMM_KBYTE(64)); in GetResRestrictions()
567 Restrictions.Alignment = GMM_MBYTE(1); in GetResRestrictions()
575Restrictions.Alignment = pGmmLibContext->GetSkuTable().FtrXe2Compression ? GFX_ALIGN(Restrictions.… in GetResRestrictions()
579Restrictions.Alignment = GFX_ALIGN(Restrictions.Alignment, (WA16K(pGmmLibContext) ? GMM_KBYTE(16) … in GetResRestrictions()
587 /// Calculates surface size based on Non Aligned ExistingSysMem restrictions.