mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52:39 +02:00
Added an ioctl usage comment to nvgfx.
This commit is contained in:
parent
cfffdcc444
commit
f6ab87e309
@ -86,6 +86,8 @@ Result nvgfxInitialize(void) {
|
|||||||
if (R_SUCCEEDED(rc)) rc = -1;
|
if (R_SUCCEEDED(rc)) rc = -1;
|
||||||
if (R_SUCCEEDED(rc)) rc = nvioctlNvhostAsGpu_MapBufferEx(g_nvgfx_fd_nvhostasgpu, 4, 0xfe, g_nvgfx_nvmapobj1, 0x10000, 0, 0, NULL);
|
if (R_SUCCEEDED(rc)) rc = nvioctlNvhostAsGpu_MapBufferEx(g_nvgfx_fd_nvhostasgpu, 4, 0xfe, g_nvgfx_nvmapobj1, 0x10000, 0, 0, NULL);
|
||||||
|
|
||||||
|
//Officially NVGPU_GPU_IOCTL_GET_L2_STATE is used here.
|
||||||
|
|
||||||
if (R_FAILED(rc)) {
|
if (R_FAILED(rc)) {
|
||||||
nvClose(g_nvgfx_fd_nvmap);
|
nvClose(g_nvgfx_fd_nvmap);
|
||||||
nvClose(g_nvgfx_fd_nvhostasgpu);
|
nvClose(g_nvgfx_fd_nvhostasgpu);
|
||||||
|
Loading…
Reference in New Issue
Block a user