Commit Graph

209 Commits

Author SHA1 Message Date
yellows8
24adf197af Moved the single-framebuf-size field from gfx into nvgfx. Use this field instead of hard-coded size in nvgfx, in some cases. Other adjustments. 2017-12-27 18:50:16 -05:00
yellows8
7c826e57e8 Changed g_nvgfx_totalframebufs to 2. Removed the gfxFlushBuffers() call in _gfxInit() and added a dcache-flush in nvmapobjInitialize(). Moved the nvgfxGetFramebuffer() call. Added a delay in _gfxInit(). Changed the initial g_gfxCurrentBuffer value, which is then updated by _gfxDequeueBuffer() later. Adjusted the code for updating g_gfxCurrentBuffer. For the gfxproducerDequeueBuffer() call, changed the value for the async param from 1 to 0. 2017-12-27 18:50:16 -05:00
yellows8
34e22c82df Use total-framebufs value from a global field instead of hard-coding it. 2017-12-27 18:50:15 -05:00
yellows8
0a7de00fe0 Use all 4 buffers with g_gfxCurrentBuffer. 2017-12-27 18:50:15 -05:00
yellows8
283fdabbf6 Renamed gfxproducerBufferInit to gfxproducerTegraBufferInit. Use an enum for the binder 'code' for this. Added comments for the BufferInitData structure. 2017-12-27 18:50:15 -05:00
yellows8
fbce1e8029 Use the output buffer value from gfxproducerDequeueBuffer() with gfxproducer calls. Set g_gfxCurrentBuffer in _gfxDequeueBuffer() with the output buffer value. Removed a comment. 2017-12-27 18:50:15 -05:00
yellows8
ee3a74fa60 nvgfx event adjustments. Fixed loop interation check for running buffer init. Disabled updating a field in g_gfxQueueBufferData with _gfxQueueBuffer(). 2017-12-27 18:50:15 -05:00
yellows8
a85ee0458d Implemented interface for accessing framebuf. Adjustments for gfx init/exit. Removed 0x77 memset for framebuf in nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
0d3da1d900 Removed outdated parcel-error comments. 2017-12-27 18:50:15 -05:00
yellows8
b577367011 Implemented nvioctlNvmap_FromID() and nvioctlNvmap_GetID().
Added PARCEL_LOGGING define in parcel.c.
Fixed the 'code' value used in gfxproducerQueueBuffer().
Moved some gfxproducer init into nvgfx.
Moved some nvgfx event init into nvgfxEventInit().
Updated the code using gfxproducerBufferInit() for setting the nvmap-handles.
Disabled a nvQueryEvent() call which now fails.
Other changes.
The setup framebuf/windowbuf is now displayed.
2017-12-27 18:50:15 -05:00
yellows8
24fa9b0f4b More nv event stuff. Updated comment regarding NVHOST_IOCTL_CTRL_GET_CONFIG. 2017-12-27 18:50:15 -05:00
yellows8
79fd32f0c7 More nvgfx event stuff, still broken. 2017-12-27 18:50:15 -05:00
yellows8
d35986d773 Added nvioctlNvhostCtrl_EventRegister(). 2017-12-27 18:50:15 -05:00
yellows8
0f0a4cd0fe Added nvioctlNvhostCtrl_EventSignal and nvioctlNvhostCtrl_EventWait. More nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
8d68cb401f Yet another nvmap obj added to nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
cc22a5e92a Another nvmap obj. 2017-12-27 18:50:15 -05:00
yellows8
453e8b8303 More nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
e9dbf4d18f More nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
9e10c02c88 Fixed kind value for last *MapBufferEx() loop interation. 2017-12-27 18:50:15 -05:00
yellows8
bccd0df4ae More nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
2d3887fb0c Implemented more nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
1908b29708 Added nvioctlChannel_SubmitGPFIFO(). 2017-12-27 18:50:15 -05:00
yellows8
eeb43bae97 Added nvioctlChannel_ZCullBind(). Added more nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
017770b509 More ioctls + nvgfx init. Added nvmapobjSetup(). 2017-12-27 18:50:15 -05:00
yellows8
31b945dff9 Store nvmap obj state inside of a dedicated obj struct + funcs for using that, etc. 2017-12-27 18:50:15 -05:00
yellows8
20ec051ca4 Implemented nvioctlNvhostCtrlGpu_GetL2State(). 2017-12-27 18:50:15 -05:00
yellows8
690b8be39a Implemented setting offset in nvioctlNvhostAsGpu_MapBufferEx(). Fixed broken MapBufferEx usage in nvgfx init for the second nvmap obj. 2017-12-27 18:50:15 -05:00
yellows8
bf65d6734a Added note regarding nvQueryEvent. 2017-12-27 18:50:15 -05:00
yellows8
f6ab87e309 Added an ioctl usage comment to nvgfx. 2017-12-27 18:50:15 -05:00
yellows8
cfffdcc444 Setup the second nvmap obj. 2017-12-27 18:50:15 -05:00
yellows8
0cc65093e3 Implemented the ioctls which were skipped during nvgfx init. nvgfx init adjustments. Fixed ioctl direction define for nvioctlNvhostAsGpu_MapBufferEx, this now works properly. 2017-12-27 18:50:15 -05:00
yellows8
704ead0d5f Added more nvioctls + more nvgfx init. 2017-12-27 18:50:15 -05:00
yellows8
619a9a378c Added nvgfx. 2017-12-27 18:50:14 -05:00
yellows8
0c19c1738c Added nvioctl. 2017-12-27 18:50:14 -05:00
yellows8
1fccd4a1bb Improved handling for appletNotifyRunning(). 2017-12-24 23:31:58 -05:00
yellows8
ec594bfbcf Added _appletGetOperationMode() and _appletGetPerformanceMode(). In appletInitialize(), use _appletGetOperationMode and _appletGetPerformanceMode(). Also use _appletGetCurrentFocusState() in appletInitialize() with a global field even for non-application-type. Added _appletSetOperationModeChangedNotification/_appletSetPerformanceModeChangedNotification and use these in appletInitialize(). Added appletGetOperationMode(), appletGetPerformanceMode(), and appletGetFocusState(), which load from cached state fields. Handle notifications in appletMainLoop(). Added appletOperationMode enum. Imported applet hooking from libctru. 2017-12-22 03:26:26 -05:00
plutoo
146aad7f55 Fixes for 1.0.0, correcting NRO aslr base 2017-12-22 02:49:32 -05:00
yellows8
4f8dfc52c6 Fixed bss handling in elf2nro. 2017-12-11 21:54:59 -05:00
yellows8
a0ebe68f54 Implemented actual args handling in __system_initArgv(). 2017-12-11 19:18:45 -05:00
yellows8
79e573472e Added __argdata__ to switch.ld. 2017-12-10 23:27:16 -05:00
yellows8
817fec6859 Fixed bss handling in tools. 2017-12-10 23:12:15 -05:00
yellows8
ebf81ab6ff Imported *MainLoop() from libctru. 2017-12-07 18:54:07 -05:00
plutoo
cddec5c754 More pm 2017-12-05 12:30:33 +01:00
plutoo
e5d0821678 Implement pm:dmnt 2017-12-05 12:30:21 +01:00
plutoo
12410fc44a
Merge pull request #22 from shinyquagsire23/hid-sharedmem-impl
HID Shared Memory - Structures + key held/down/up implementation
2017-12-02 23:21:10 +01:00
yellows8
d24671b306 Implemented applet initialization for application-type which was missing. Added svcResetSignal. 2017-12-01 23:15:40 -05:00
yellows8
7da25ba40f Updated fs_dev.h comments, etc. Fixed _fsdevUnmountDeviceStruct(). Added fsdevCommitDevice(). Check whether sdmc is already mounted in fsdevInit(). 2017-11-30 13:00:47 -05:00
yellows8
0c5efe5f9c Added a comment in fs_dev.h. Adjusted fs.h formatting, etc. Added support for mounting SaveData. 2017-11-30 01:58:21 -05:00
yellows8
a405bc4827 Added account. Added u128 type to types.h. 2017-11-29 23:31:18 -05:00
yellows8
cb123dd579 Imported initArgv from libctru. Load __system_argc/__system_argv in crt0. Enabled the __system_argc/__system_argv code in fsdev. 2017-11-29 21:30:40 -05:00