本文整理汇总了C++中PVRSRV_DEVICE_NODE::pfnMMUDelete方法的典型用法代码示例。如果您正苦于以下问题:C++ PVRSRV_DEVICE_NODE::pfnMMUDelete方法的具体用法?C++ PVRSRV_DEVICE_NODE::pfnMMUDelete怎么用?C++ PVRSRV_DEVICE_NODE::pfnMMUDelete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PVRSRV_DEVICE_NODE
的用法示例。
在下文中一共展示了PVRSRV_DEVICE_NODE::pfnMMUDelete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BM_DestroyContextCallBack_AnyVaCb
static PVRSRV_ERROR BM_DestroyContextCallBack_AnyVaCb(BM_HEAP *psBMHeap, va_list va)
{
PVRSRV_DEVICE_NODE *psDeviceNode;
psDeviceNode = va_arg(va, PVRSRV_DEVICE_NODE*);
if(psBMHeap->ui32Attribs
& (PVRSRV_BACKINGSTORE_SYSMEM_NONCONTIG
|PVRSRV_BACKINGSTORE_LOCALMEM_CONTIG))
{
if (psBMHeap->pImportArena)
{
RA_Delete (psBMHeap->pImportArena);
}
}
else
{
PVR_DPF((PVR_DBG_ERROR, "BM_DestroyContext: backing store type unsupported"));
return PVRSRV_ERROR_UNSUPPORTED_BACKING_STORE;
}
psDeviceNode->pfnMMUDelete(psBMHeap->pMMUHeap);
OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(BM_HEAP), psBMHeap, IMG_NULL);
return PVRSRV_OK;
}
示例2: sizeof
IMG_VOID
BM_DestroyHeap (IMG_HANDLE hDevMemHeap)
{
BM_HEAP* psBMHeap = (BM_HEAP*)hDevMemHeap;
PVRSRV_DEVICE_NODE *psDeviceNode = psBMHeap->pBMContext->psDeviceNode;
PVR_DPF((PVR_DBG_MESSAGE, "BM_DestroyHeap"));
if(psBMHeap)
{
if(psBMHeap->ui32Attribs
& (PVRSRV_BACKINGSTORE_SYSMEM_NONCONTIG
|PVRSRV_BACKINGSTORE_LOCALMEM_CONTIG))
{
if (psBMHeap->pImportArena)
{
RA_Delete (psBMHeap->pImportArena);
}
}
else
{
PVR_DPF((PVR_DBG_ERROR, "BM_DestroyHeap: backing store type unsupported"));
return;
}
psDeviceNode->pfnMMUDelete (psBMHeap->pMMUHeap);
List_BM_HEAP_Remove(psBMHeap);
OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(BM_HEAP), psBMHeap, IMG_NULL);
}
else
{
PVR_DPF ((PVR_DBG_ERROR, "BM_DestroyHeap: invalid heap handle"));
}
}