NNS_GfdDumpFrmTexVramManagerEx

Syntax

#include <nnsys/gfd.h>
void NNS_GfdDumpFrmTexVramManagerEx( NNSGfdFrmTexVramDebugDumpCallBack pFunc, void* pUserContext );

Arguments

pFunc A type of NNSGfdFrmTexVramDebugDumpCallBack function pointer that represents a user-defined debug callback.
pUserContext Pointer to a variable passed as an argument to the user-defined debug callback.

Return Values

None.

Description

Specifies the user-defined debug callback and outputs the status of the frame texture VRAM manager for debugging. The NNS_GfdDumpFrmTexVramManager function is implemented using this function. A sample of the callback function definition implemented using the NNS_GfdDumpFrmTexVramManager function is shown below.

 
static void DefaultDebugDumpFunc_( 
    int index, 
    u32 startAddr, 
    u32 endAddr, 
    u32 blockMax, 
    BOOL bActive, 
    void* pUserContext 
)
{
    NNSiGfdDefaultDebugContext*        pContext = (NNSiGfdDefaultDebugContext*)pUserContext;
    NNS_GFD_NULL_ASSERT( pContext );
    
    
    if( bActive )
    {
        OS_Printf("%02d    : 0x%08x  : 0x%08x  : 0x%08x  \n", 
            index, 
            startAddr, 
            endAddr, 
            endAddr - startAddr );
        
        pContext->szTotalFree      += endAddr - startAddr;
        pContext->szTotalReserved  += blockMax;            
    }else{
        OS_Printf("%02d    : ----------  : ----------  : ----------  \n", index );
    }
}

See Also

None.

Revision History

2007/01/31 Initial version.


CONFIDENTIAL