mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-20 08:39:58 -04:00
Triforce v0.3.3
This commit is contained in:
@@ -112,6 +112,8 @@ void memory_table_begin(); // (hookshot: a recording's p
|
||||
bool memory_table_flush();
|
||||
uint64_t memory_guest_pages(); // (hookshot: the device address of guest memory's page table, 0: none)
|
||||
void memory_sync(); // (at each submit: pools the game made or let go)
|
||||
extern std::atomic<int64_t> memsync_lock_wait_ns; // (hookshot, diagnostics: time memory_sync waited for its two locks; the slow-submit line)
|
||||
extern std::atomic<int64_t> memsync_part_ns[3]; // (hookshot, diagnostics: submit_memory_work's memory_sync, memory_take_capture, memory_collect_written)
|
||||
BufferRef gpu_buffer(uint64_t gpu, uint64_t size); // (empty when no pool holds the range)
|
||||
/// A range as a binding of the replay sees it: the pool's VRAM mirror when it has one (vk_memory.cpp), else the
|
||||
/// imported pool. written: the GPU may write it (copied back to guest memory at the submission's end).
|
||||
@@ -197,6 +199,7 @@ uint64_t gpu_pool_start(uint64_t gpu); // (EvilOOT) and where it begins
|
||||
bool create_buffer_cached(uint64_t size, VkBufferUsageFlags usage, VkBuffer& buffer, VmaAllocation& allocation,
|
||||
void** mapped, bool dedicated = false); // (vk_vma.cpp: cached host memory, mapped)
|
||||
void flush_mapped(VmaAllocation allocation, uint64_t size);
|
||||
bool host_cached(VmaAllocation allocation); // (its memory type has VK_MEMORY_PROPERTY_HOST_CACHED_BIT)
|
||||
void flush_mapped_range(VmaAllocation allocation, uint64_t offset, uint64_t size);
|
||||
void invalidate_mapped(VmaAllocation allocation, uint64_t size); // (the CPU is to read what the GPU wrote: a no-op in coherent memory)
|
||||
void memory_stamp_gpu(uint64_t guest, uint64_t size); // (a GPU write: memory_stamp, and the pages noted)
|
||||
@@ -245,6 +248,8 @@ bool has_stencil(VkFormat f);
|
||||
|
||||
// device memory (vk_vma.cpp, Vulkan Memory Allocator)
|
||||
bool vma_init(PFN_vkGetInstanceProcAddr gipa);
|
||||
extern uint64_t test_card_ballast; // (vk_vma.cpp, RX_VK_TEST_CARD_MB: 0 outside that lab test)
|
||||
void vma_blocks_ahead_check(); // (vk_vma.cpp: the blocks made ahead given back while VRAM is short; every 600 presents)
|
||||
/// (textures: from the textures' own pool, the one image_compact_* moves allocations in: vk_texture.cpp's compaction)
|
||||
bool create_image(const VkImageCreateInfo& ci, VkImage& image, VmaAllocation& allocation, bool dedicated = false, bool target = false,
|
||||
bool textures = false);
|
||||
|
||||
Reference in New Issue
Block a user