mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
- NvCmdList: - Added 'offset' parameter: start of the cmdlist within the buffer - Added nvCmdListReset for resetting a cmdlist (offset/num_cmds cleared) - NvGpfifo: - nvGpfifoCreate: disabled fence wait - nvGpfifoSubmit -> nvGpfifoSubmitCmdList: - Added fence_incr parameter - Cleaned up flags and gpfifo entry creation - Now advances cmdlist offset by the number of cmds submitted instead of going back to the beginning
21 lines
469 B
C
21 lines
469 B
C
#pragma once
|
|
|
|
typedef struct NvGpu NvGpu;
|
|
|
|
typedef struct {
|
|
NvBuffer buffer;
|
|
size_t offset;
|
|
size_t num_cmds;
|
|
size_t max_cmds;
|
|
NvGpu* parent;
|
|
} NvCmdList;
|
|
|
|
Result nvCmdListCreate(NvCmdList* c, NvGpu* parent, size_t max_cmds);
|
|
void nvCmdListClose(NvCmdList* c);
|
|
|
|
iova_t nvCmdListGetGpuAddr(NvCmdList* c);
|
|
u64 nvCmdListGetListSize(NvCmdList* c);
|
|
|
|
void nvCmdListReset(NvCmdList* c);
|
|
u32* nvCmdListInsert(NvCmdList* c, size_t num_cmds);
|