Added nvInfoGetGpuCharacteristics

This commit is contained in:
fincs 2018-10-31 15:06:08 +01:00 committed by fincs
parent 9f63f29988
commit f0de0c869d
2 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,9 @@
#pragma once
#include "types.h"
#include "ioctl.h"
Result nvInfoInit(void);
void nvInfoExit(void);
const nvioctl_gpu_characteristics* nvInfoGetGpuCharacteristics(void);
u32 nvInfoGetZcullCtxSize(void);

View File

@ -14,7 +14,7 @@ static u64 g_refCnt;
static nvioctl_gpu_characteristics g_gpu_characteristics;
static u32 g_zcull_ctx_size;
Result nvInfoInit()
Result nvInfoInit(void)
{
Result rc;
@ -38,7 +38,7 @@ Result nvInfoInit()
return rc;
}
void nvInfoExit()
void nvInfoExit(void)
{
if (atomicDecrement64(&g_refCnt) == 0)
{
@ -49,6 +49,10 @@ void nvInfoExit()
}
}
u32 nvInfoGetZcullCtxSize() {
const nvioctl_gpu_characteristics* nvInfoGetGpuCharacteristics(void) {
return &g_gpu_characteristics;
}
u32 nvInfoGetZcullCtxSize(void) {
return g_zcull_ctx_size;
}