Exemplo n.º 1
0
enum PVRSRV_ERROR PVRSRVGetFBStatsKM(u32 *pui32Total, u32 *pui32Available)
{
	u32 ui32Total = 0, i = 0;
	u32 ui32Available = 0;

	*pui32Total = 0;
	*pui32Available = 0;

	while (BM_ContiguousStatistics(i, &ui32Total, &ui32Available) ==
	       IMG_TRUE) {
		*pui32Total += ui32Total;
		*pui32Available += ui32Available;

		i++;
	}

	return PVRSRV_OK;
}
Exemplo n.º 2
0
PVRSRV_ERROR IMG_CALLCONV PVRSRVGetFBStatsKM(IMG_UINT32		*pui32Total, 
											 IMG_UINT32		*pui32Available)
{
	IMG_UINT32 ui32Total = 0, i = 0;
	IMG_UINT32 ui32Available = 0;

	*pui32Total		= 0;
	*pui32Available = 0;

	
	while(BM_ContiguousStatistics(i, &ui32Total, &ui32Available) == IMG_TRUE)
	{
		*pui32Total		+= ui32Total;
		*pui32Available += ui32Available;

		i++;
	}

	return PVRSRV_OK;
}