diff --git a/nx/include/switch/nvidia/gpu/gpu.h b/nx/include/switch/nvidia/gpu/gpu.h index e4288e49..9827895e 100644 --- a/nx/include/switch/nvidia/gpu/gpu.h +++ b/nx/include/switch/nvidia/gpu/gpu.h @@ -9,5 +9,5 @@ typedef struct NvGpu { NvErrorNotifier error_notifier; } NvGpu; -Result nvgpuCreate(NvGpu* g); -void nvgpuClose(NvGpu* g); +Result nvGpuCreate(NvGpu* g); +void nvGpuClose(NvGpu* g); diff --git a/nx/source/nvidia/gpu/gpu.c b/nx/source/nvidia/gpu/gpu.c index 2f82633a..4a00ab19 100644 --- a/nx/source/nvidia/gpu/gpu.c +++ b/nx/source/nvidia/gpu/gpu.c @@ -1,6 +1,6 @@ #include -Result nvgpuCreate(NvGpu* g) +Result nvGpuCreate(NvGpu* g) { Result rc; @@ -42,12 +42,12 @@ Result nvgpuCreate(NvGpu* g) rc = nvZcullContextCreate(&g->zcull_ctx, g); if (R_FAILED(rc)) - nvgpuClose(g); + nvGpuClose(g); return rc; } -void nvgpuClose(NvGpu* g) +void nvGpuClose(NvGpu* g) { nvBufferExit(); nvInfoExit(); diff --git a/nx/source/nvidia/ioctl/nvhost-ctrl.c b/nx/source/nvidia/ioctl/nvhost-ctrl.c index 5f8df261..8f4d7089 100644 --- a/nx/source/nvidia/ioctl/nvhost-ctrl.c +++ b/nx/source/nvidia/ioctl/nvhost-ctrl.c @@ -14,10 +14,12 @@ Result nvioctlNvhostCtrl_SyncptRead(u32 fd, u32 id, u32* out) memset(&data, 0, sizeof(data)); data.syncpt_id = id; + Result rc; + rc = nvIoctl(fd, _NV_IOWR(0x00, 0x14, data), &data); if (R_SUCCEEDED(rc)) { - *out = value; + *out = data.value; } return rc;