mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-25 14:22:40 +02:00
Added nvInfoGetGpuCharacteristics
This commit is contained in:
parent
9f63f29988
commit
f0de0c869d
@ -1,7 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
#include "ioctl.h"
|
||||||
|
|
||||||
Result nvInfoInit(void);
|
Result nvInfoInit(void);
|
||||||
void nvInfoExit(void);
|
void nvInfoExit(void);
|
||||||
|
|
||||||
|
const nvioctl_gpu_characteristics* nvInfoGetGpuCharacteristics(void);
|
||||||
u32 nvInfoGetZcullCtxSize(void);
|
u32 nvInfoGetZcullCtxSize(void);
|
||||||
|
@ -14,7 +14,7 @@ static u64 g_refCnt;
|
|||||||
static nvioctl_gpu_characteristics g_gpu_characteristics;
|
static nvioctl_gpu_characteristics g_gpu_characteristics;
|
||||||
static u32 g_zcull_ctx_size;
|
static u32 g_zcull_ctx_size;
|
||||||
|
|
||||||
Result nvInfoInit()
|
Result nvInfoInit(void)
|
||||||
{
|
{
|
||||||
Result rc;
|
Result rc;
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ Result nvInfoInit()
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nvInfoExit()
|
void nvInfoExit(void)
|
||||||
{
|
{
|
||||||
if (atomicDecrement64(&g_refCnt) == 0)
|
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;
|
return g_zcull_ctx_size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user