[Vulkan] Better debug object names.

This commit is contained in:
gibbed 2018-05-13 08:42:36 -05:00
parent ab0f75307a
commit 1ffa4747db
3 changed files with 7 additions and 5 deletions

View File

@ -220,7 +220,7 @@ VkResult CachedTileView::Initialize(VkCommandBuffer command_buffer) {
device_->DbgSetObjectName( device_->DbgSetObjectName(
reinterpret_cast<uint64_t>(image), VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, reinterpret_cast<uint64_t>(image), VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT,
xe::format_string("RT %.8X %.8X(%d)", key.tile_offset, key.tile_width, xe::format_string("RT: 0x%.8X 0x%.8X(%d)", key.tile_offset, key.tile_width,
key.tile_width)); key.tile_width));
VkMemoryRequirements memory_requirements; VkMemoryRequirements memory_requirements;

View File

@ -457,7 +457,7 @@ TextureCache::Texture* TextureCache::DemandResolveTexture(
reinterpret_cast<uint64_t>(texture->image), reinterpret_cast<uint64_t>(texture->image),
VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT,
xe::format_string( xe::format_string(
"0x%.8X - 0x%.8X", texture_info.guest_address, "RT: 0x%.8X - 0x%.8X", texture_info.guest_address,
texture_info.guest_address + texture_info.input_length)); texture_info.guest_address + texture_info.input_length));
// Setup an access watch. If this texture is touched, it is destroyed. // Setup an access watch. If this texture is touched, it is destroyed.
@ -535,8 +535,10 @@ TextureCache::Texture* TextureCache::Demand(const TextureInfo& texture_info,
reinterpret_cast<uint64_t>(texture->image), reinterpret_cast<uint64_t>(texture->image),
VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT,
xe::format_string( xe::format_string(
"0x%.8X - 0x%.8X", texture_info.guest_address, "T: 0x%.8X - 0x%.8X (%s, %s)", texture_info.guest_address,
texture_info.guest_address + texture_info.input_length)); texture_info.guest_address + texture_info.input_length,
texture_info.format_info()->name,
get_dimension_name(texture_info.dimension)));
textures_[texture_hash] = texture; textures_[texture_hash] = texture;
COUNT_profile_set("gpu/texture_cache/textures", textures_.size()); COUNT_profile_set("gpu/texture_cache/textures", textures_.size());

View File

@ -51,7 +51,7 @@ bool VulkanShader::Prepare() {
device_->DbgSetObjectName(uint64_t(shader_module_), device_->DbgSetObjectName(uint64_t(shader_module_),
VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT,
xe::format_string("%.16llX", ucode_data_hash())); xe::format_string("S: %.16llX", ucode_data_hash()));
return status == VK_SUCCESS; return status == VK_SUCCESS;
} }