weixin_39702479
weixin_39702479
2020-12-26 10:10

Object tracker validation for vkGetDisplayModePropertiesKHR checks wrong ID

Validation layers assert on that the ID returned by driver in GetDisplayModeProperties doesn't exist, because it checks unique_id_mapping.

The fix seems to be a reverse mapping from driver ID -> unique ID instead. Overall VK_KHR_display seems fairly incomplete as the VkSurfaceKHR created isn't recognized by the object tracking layer as a surface.

该提问来源于开源项目:KhronosGroup/Vulkan-LoaderAndValidationLayers

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • weixin_39935319 weixin_39935319 4月前

    Ian can you take a quick look at this and see what you think?

    点赞 评论 复制链接分享
  • weixin_39662432 weixin_39662432 4月前

    This coverage hasn't yet been added to object tracker.

    点赞 评论 复制链接分享
  • weixin_39678525 weixin_39678525 4月前

    Sorry. I didn't add support for VK_KHR_display. Incomplete support went in, contrary to my feedback. This is desktop-only functionality, that involves not having a window system; and is for setups that I don't have. As such, I'm assigning this back to LunarG. Again, sorry.

    点赞 评论 复制链接分享
  • weixin_39662432 weixin_39662432 4月前

    Have a patch series ready to go, but have to wait for a header bug to be fixed. The two new objects for this extension have not yet been added to the VkDebugReportObjectTypeEXT enum. See vulkan-docs issue.

    点赞 评论 复制链接分享
  • weixin_39662432 weixin_39662432 4月前

    Fixed by merge request #1257.

    点赞 评论 复制链接分享

相关推荐