mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-23 21:32:39 +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
14 lines
339 B
C
14 lines
339 B
C
#pragma once
|
|
|
|
typedef struct {
|
|
NvChannel* parent;
|
|
} NvGpfifo;
|
|
|
|
Result nvGpfifoCreate(NvGpfifo* f, NvChannel* parent);
|
|
void nvGpfifoClose(NvGpfifo* f);
|
|
|
|
#define NV_MAKE_GPFIFO_ENTRY(iova, size) \
|
|
((iova) | (((u64)(size)) << 42))
|
|
|
|
Result nvGpfifoSubmitCmdList(NvGpfifo* f, NvCmdList* cmd_list, u32 fence_incr, NvFence* fence_out);
|