mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 05:06:40 +00:00
more APIs
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "Emulator/Kernel/Pthread.h"
|
||||
#include "Emulator/Libs/Errno.h"
|
||||
#include "Emulator/Libs/Libs.h"
|
||||
#include "Emulator/Loader/VirtualMemory.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
@@ -651,6 +652,21 @@ int KYTY_SYSV_ABI GraphicsIsUserPaEnabled()
|
||||
return 0;
|
||||
}
|
||||
|
||||
void* KYTY_SYSV_ABI GraphicsGetTheTessellationFactorRingBufferBaseAddress()
|
||||
{
|
||||
PRINT_NAME();
|
||||
|
||||
auto addr = Loader::VirtualMemory::AllocAligned(0, 0x20000, Loader::VirtualMemory::Mode::ReadWrite, 256);
|
||||
Loader::VirtualMemory::Free(addr);
|
||||
bool again = Loader::VirtualMemory::AllocFixed(addr, 0x20000, Loader::VirtualMemory::Mode::ReadWrite);
|
||||
EXIT_NOT_IMPLEMENTED(!again);
|
||||
Loader::VirtualMemory::Free(addr);
|
||||
|
||||
printf("\t addr = %016" PRIx64 "\n", addr);
|
||||
|
||||
return reinterpret_cast<void*>(addr);
|
||||
}
|
||||
|
||||
int KYTY_SYSV_ABI GraphicsRegisterOwner(uint32_t* owner_handle, const char* name)
|
||||
{
|
||||
PRINT_NAME();
|
||||
|
||||
Reference in New Issue
Block a user