mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Vulkan debug log: Remove some old exclusions, add a new one (for an old issue)
This commit is contained in:
parent
6aa3681f7c
commit
dee0f3f9ec
2 changed files with 9 additions and 8 deletions
|
@ -33,13 +33,12 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanDebugUtilsCallback(
|
|||
|
||||
const char *pMessage = pCallbackData->pMessage;
|
||||
|
||||
// Apparent bugs around timestamp validation in the validation layers
|
||||
if (strstr(pMessage, "vkCmdBeginQuery(): VkQueryPool"))
|
||||
return false;
|
||||
if (strstr(pMessage, "vkGetQueryPoolResults() on VkQueryPool"))
|
||||
return false;
|
||||
|
||||
int messageCode = pCallbackData->messageIdNumber;
|
||||
if (messageCode == 101294395) {
|
||||
// UNASSIGNED-CoreValidation-Shader-OutputNotConsumed - benign perf warning
|
||||
return false;
|
||||
}
|
||||
|
||||
const char *pLayerPrefix = "";
|
||||
if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) {
|
||||
message << "ERROR(";
|
||||
|
@ -58,7 +57,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanDebugUtilsCallback(
|
|||
} else if (messageType & VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT) {
|
||||
message << "validation";
|
||||
}
|
||||
message << ":" << pCallbackData->messageIdNumber << ") " << pMessage << "\n";
|
||||
message << ":" << messageCode << ") " << pMessage << "\n";
|
||||
|
||||
std::string msg = message.str();
|
||||
|
||||
|
|
|
@ -143,7 +143,9 @@ void VulkanPushBuffer::Map() {
|
|||
}
|
||||
|
||||
void VulkanPushBuffer::Unmap() {
|
||||
_dbg_assert_(writePtr_ != 0);
|
||||
_dbg_assert_msg_(writePtr_ != nullptr, "VulkanPushBuffer::Unmap: writePtr_ null here means we have a bug (map/unmap mismatch)");
|
||||
if (!writePtr_)
|
||||
return;
|
||||
|
||||
if ((memoryPropertyMask_ & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0) {
|
||||
VkMappedMemoryRange range{ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE };
|
||||
|
|
Loading…
Add table
Reference in a new issue