mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
NvBufferFlags_Nintendo doesn't exist, it's a misreading of the alignment parameter
This commit is contained in:
parent
e3a7187973
commit
d718a8dd28
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NvBufferFlags_Writable=1,
|
NvBufferFlags_Writable=1,
|
||||||
NvBufferFlags_Nintendo=0x20000,
|
|
||||||
} NvBufferFlags;
|
} NvBufferFlags;
|
||||||
|
|
||||||
typedef struct NvAddressSpace NvAddressSpace;
|
typedef struct NvAddressSpace NvAddressSpace;
|
||||||
|
@ -68,7 +68,7 @@ static Result _nvBufferCreate(
|
|||||||
|
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = nvioctlNvmap_Alloc(
|
rc = nvioctlNvmap_Alloc(
|
||||||
g_nvmap_fd, m->fd, 0, flags | NvBufferFlags_Nintendo, align, kind, m->cpu_addr);
|
g_nvmap_fd, m->fd, 0, flags, align, kind, m->cpu_addr);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = nvAddressSpaceMapBuffer(as, m->fd, 0, &m->gpu_addr);
|
rc = nvAddressSpaceMapBuffer(as, m->fd, 0, &m->gpu_addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user