mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 10:18:30 +12:00
Remove deprecated logging system and expose developer logging window (#825)
This commit is contained in:
parent
b8dec03cb5
commit
d903b2cf12
47 changed files with 148 additions and 283 deletions
|
@ -132,7 +132,7 @@ PPCRecFunction_t* PPCRecompiler_recompileFunction(PPCFunctionBoundaryTracker::PP
|
|||
{
|
||||
if (range.startAddress >= PPC_REC_CODE_AREA_END)
|
||||
{
|
||||
cemuLog_force("Attempting to recompile function outside of allowed code area");
|
||||
cemuLog_log(LogType::Force, "Attempting to recompile function outside of allowed code area");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
@ -470,7 +470,7 @@ LatteCMDPtr LatteCP_itMemWrite(LatteCMDPtr cmd, uint32 nWords)
|
|||
MPTR valuePhysAddr = (word0 & ~3);
|
||||
if (valuePhysAddr == 0)
|
||||
{
|
||||
cemuLog_force("GPU: Invalid itMemWrite to null pointer");
|
||||
cemuLog_log(LogType::Force, "GPU: Invalid itMemWrite to null pointer");
|
||||
return cmd;
|
||||
}
|
||||
uint32be* memPtr = (uint32be*)memory_getPointerFromPhysicalOffset(valuePhysAddr);
|
||||
|
|
|
@ -374,7 +374,7 @@ void LatteTexture_CopySlice(LatteTexture* srcTexture, sint32 srcSlice, sint32 sr
|
|||
sint32 effectiveHeight_src = srcTexture->overwriteInfo.hasResolutionOverwrite ? srcTexture->overwriteInfo.height : srcTexture->height;
|
||||
sint32 effectiveWidth_dst = dstTexture->overwriteInfo.hasResolutionOverwrite ? dstTexture->overwriteInfo.width : dstTexture->width;
|
||||
sint32 effectiveHeight_dst = dstTexture->overwriteInfo.hasResolutionOverwrite ? dstTexture->overwriteInfo.height : dstTexture->height;
|
||||
if (cafeLog_isLoggingFlagEnabled(LOG_TYPE_TEXTURE_CACHE))
|
||||
if (cemuLog_isLoggingEnabled(LogType::TextureCache))
|
||||
{
|
||||
cemuLog_log(LogType::Force, "_copySlice(): Unable to sync textures with mismatching scale ratio (due to texture rule)");
|
||||
float ratioWidth_src = (float)effectiveWidth_src / (float)srcTexture->width;
|
||||
|
|
|
@ -163,7 +163,7 @@ int Latte_ThreadEntry()
|
|||
sLatteThreadFinishedInit = true;
|
||||
|
||||
// register debug handler
|
||||
if (cafeLog_isLoggingFlagEnabled(LOG_TYPE_OPENGL))
|
||||
if (cemuLog_isLoggingEnabled(LogType::OpenGLLogging))
|
||||
g_renderer->EnableDebugMode();
|
||||
|
||||
// wait till a game is started
|
||||
|
|
|
@ -253,7 +253,7 @@ void LoadOpenGLImports()
|
|||
void OpenGLRenderer::Initialize()
|
||||
{
|
||||
Renderer::Initialize();
|
||||
auto lock = cafeLog_acquire();
|
||||
auto lock = cemuLog_acquire();
|
||||
cemuLog_log(LogType::Force, "------- Init OpenGL graphics backend -------");
|
||||
|
||||
GLCanvas_MakeCurrent(false);
|
||||
|
|
|
@ -1042,7 +1042,7 @@ void OpenGLRenderer::draw_genericDrawHandler(uint32 baseVertex, uint32 baseInsta
|
|||
LatteTextureView* rt_depth = LatteMRT::GetDepthAttachment();
|
||||
if (!rt_depth || !rt_color)
|
||||
{
|
||||
cemuLog_force("GPU7 special state 5 used but render target not setup correctly");
|
||||
cemuLog_log(LogType::Force, "GPU7 special state 5 used but render target not setup correctly");
|
||||
return;
|
||||
}
|
||||
surfaceCopy_copySurfaceWithFormatConversion(rt_depth->baseTexture, rt_depth->firstMip, rt_depth->firstSlice, rt_color->baseTexture, rt_color->firstMip, rt_color->firstSlice, rt_depth->baseTexture->width, rt_depth->baseTexture->height);
|
||||
|
|
|
@ -18,7 +18,7 @@ void SwapchainInfoVk::Create(VkPhysicalDevice physicalDevice, VkDevice logicalDe
|
|||
if(details.capabilities.maxImageCount > 0)
|
||||
image_count = std::min(image_count, details.capabilities.maxImageCount);
|
||||
if(image_count < 2)
|
||||
cemuLog_force("Vulkan: Swapchain image count less than 2 may cause problems");
|
||||
cemuLog_log(LogType::Force, "Vulkan: Swapchain image count less than 2 may cause problems");
|
||||
|
||||
VkSwapchainCreateInfoKHR create_info = CreateSwapchainCreateInfo(surface, details, m_surfaceFormat, image_count, m_actualExtent);
|
||||
create_info.oldSwapchain = nullptr;
|
||||
|
|
|
@ -311,7 +311,7 @@ VulkanRenderer::VulkanRenderer()
|
|||
|
||||
cemuLog_log(LogType::Force, "------- Init Vulkan graphics backend -------");
|
||||
|
||||
const bool useValidationLayer = cafeLog_isLoggingFlagEnabled(LOG_TYPE_VULKAN_VALIDATION);
|
||||
const bool useValidationLayer = cemuLog_isLoggingEnabled(LogType::VulkanValidation);
|
||||
if (useValidationLayer)
|
||||
cemuLog_log(LogType::Force, "Validation layer is enabled");
|
||||
|
||||
|
@ -531,7 +531,7 @@ VulkanRenderer::VulkanRenderer()
|
|||
swapchain_createDescriptorSetLayout();
|
||||
|
||||
// extension info
|
||||
// cemuLog_force("VK_KHR_dynamic_rendering: {}", m_featureControl.deviceExtensions.dynamic_rendering?"supported":"not supported");
|
||||
// cemuLog_log(LogType::Force, "VK_KHR_dynamic_rendering: {}", m_featureControl.deviceExtensions.dynamic_rendering?"supported":"not supported");
|
||||
|
||||
void* bufferPtr;
|
||||
// init ringbuffer for uniform vars
|
||||
|
@ -1194,7 +1194,7 @@ std::vector<const char*> VulkanRenderer::CheckInstanceExtensionSupport(FeatureCo
|
|||
#elif BOOST_OS_MACOS
|
||||
requiredInstanceExtensions.emplace_back(VK_EXT_METAL_SURFACE_EXTENSION_NAME);
|
||||
#endif
|
||||
if (cafeLog_isLoggingFlagEnabled(LOG_TYPE_VULKAN_VALIDATION))
|
||||
if (cemuLog_isLoggingEnabled(LogType::VulkanValidation))
|
||||
requiredInstanceExtensions.emplace_back(VK_EXT_DEBUG_REPORT_EXTENSION_NAME);
|
||||
|
||||
// make sure all required extensions are supported
|
||||
|
@ -3596,7 +3596,7 @@ void VulkanRenderer::bufferCache_init(const sint32 bufferSize)
|
|||
m_useHostMemoryForCache = memoryManager->CreateBufferFromHostMemory(memory_getPointerFromVirtualOffset(m_importedMemBaseAddress), hostAllocationSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT, 0, m_importedMem, m_importedMemMemory);
|
||||
if (!m_useHostMemoryForCache)
|
||||
{
|
||||
cemuLog_force("Unable to import host memory to Vulkan buffer. Use default cache system instead");
|
||||
cemuLog_log(LogType::Force, "Unable to import host memory to Vulkan buffer. Use default cache system instead");
|
||||
}
|
||||
}
|
||||
if(!m_useHostMemoryForCache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue