mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-06 00:19:22 +02:00
Get rid of flag todo
This commit is contained in:
parent
28cac45af8
commit
6d21700ff7
@ -129,6 +129,12 @@ typedef enum {
|
||||
NvZcullConfig_PartOfRegularBuffer = 3
|
||||
} NvZcullConfig;
|
||||
|
||||
// Used with nvioctlNvhostAsGpu_MapBufferEx().
|
||||
typedef enum {
|
||||
NvMapBufferFlags_FixedOffset = 0,
|
||||
NvMapBufferFlags_IsCachable = 4,
|
||||
} NvMapBufferFlags;
|
||||
|
||||
typedef enum {
|
||||
NvErrorType_FifoErrorIdleTimeout=8,
|
||||
NvErrorType_GrErrorSwNotify=13,
|
||||
|
@ -44,8 +44,8 @@ Result nvasReserveFull(NvAddressSpace* a) {
|
||||
}
|
||||
|
||||
Result nvasMapBuffer(NvAddressSpace* a, NvBuffer* buffer, NvBufferKind kind, iova_t* iova_out) {
|
||||
// TODO: What is flag==4?
|
||||
return nvioctlNvhostAsGpu_MapBufferEx(a->fd, 4, kind, buffer->fd, 0x10000, 0, 0, 0, iova_out);
|
||||
return nvioctlNvhostAsGpu_MapBufferEx(
|
||||
a->fd, NvMapBufferFlags_IsCachable, kind, buffer->fd, 0x10000, 0, 0, 0, iova_out);
|
||||
}
|
||||
|
||||
Result nvasBindToChannel(NvAddressSpace* a, NvChannel* channel) {
|
||||
|
Loading…
Reference in New Issue
Block a user