You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the mipmap generation sample. And after I enable best practice validation layer, I get this warning:
Validation Performance Warning: [ UNASSIGNED-BestPractices-PipelineBarrier-readToReadBarrier ] Object 0: handle = 0x207920c9a40, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x1264fdd5 | [AMD] [NVIDIA] Performance warning: Don't issue read-to-read barriers. Get the resource in the right state the first time you use it.
vkb::insert_image_memory_barrier(
blit_command,
texture.image,
VK_ACCESS_TRANSFER_READ_BIT,
VK_ACCESS_SHADER_READ_BIT,
VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,
{VK_IMAGE_ASPECT_COLOR_BIT, 0, texture.mip_levels, 0, 1});```
I think this is because :transfer "TRANSFER_READ" to "SHADER_READ". Is there a way to eliminate the warning? Or I can I completely ignore it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://github.com/KhronosGroup/Vulkan-Samples/blob/main/samples/api/texture_mipmap_generation/texture_mipmap_generation.cpp#L249
I tried the mipmap generation sample. And after I enable best practice validation layer, I get this warning:
Validation Performance Warning: [ UNASSIGNED-BestPractices-PipelineBarrier-readToReadBarrier ] Object 0: handle = 0x207920c9a40, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x1264fdd5 | [AMD] [NVIDIA] Performance warning: Don't issue read-to-read barriers. Get the resource in the right state the first time you use it.
Beta Was this translation helpful? Give feedback.
All reactions