Giter VIP home page Giter VIP logo

Comments (4)

charles-lunarg avatar charles-lunarg commented on July 28, 2024

Looking into this issue (after it was assigned to me), this is definitely a valid issue.
Applications have no way to tell if the physical device they have will support functions VK_KHR_surface due to how instance extensions will be reported as supported when at least one ICD supports.
Unfortunately, this is not something that can be fixed very easily and requires an overhaul to the instance/physical device extension interface to support knowing which ICD supports what.

An alternative idea is to implement the logic necessary for the function, ie doing the ICD's job if the ICD doesn't support hte extension, but that is a can of worms in its own right.

from vulkan-loader.

charles-lunarg avatar charles-lunarg commented on July 28, 2024

This should be migrated to Vulkan-Docs, as there is nothing the Vulkan-Loader can do to fix this that doesn't require a new extension first.

from vulkan-loader.

charles-lunarg avatar charles-lunarg commented on July 28, 2024

After further inspection, while there may be a vulkan docs issue to create, the loader should proactively check if the extension is supported on the ICD before calling down into it.

from vulkan-loader.

MarkY-LunarG avatar MarkY-LunarG commented on July 28, 2024

In the pending autogen changes, we now have the ability to check this by modifying loader/wsi.c line 359 to:

    if (!icd_term->scanned_icd->inst_ext_support.khr_surface ||
        NULL == icd_term->dispatch.GetPhysicalDeviceSurfaceFormatsKHR) {

from vulkan-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.