Giter Site home page Giter Site logo

Comments (15)

SaschaWillems avatar SaschaWillems commented on May 27, 2024 1

My patch for swiftshader got approved. If you built again from the current source, you should be able to use it with the caps viewer.

gfx-portability crashes with the same error at vkGetPhysicalDeviceWin32PresentationSupportKHR. I'll also submit a patch for that.

from vulkancapsviewer.

SaschaWillems avatar SaschaWillems commented on May 27, 2024 1

Not necessary. I already have it up-and-running with gfx-portability and will submit a patch asap ;)

from vulkancapsviewer.

Hugobros3 avatar Hugobros3 commented on May 27, 2024

For good measure, here is my vulkaninfo output with both ICDs registered

from vulkancapsviewer.

SaschaWillems avatar SaschaWillems commented on May 27, 2024

How do I register swiftshader as a valid ICD? The loader has a list of known device, and refuses to load the swiftshader ICD for me.

from vulkancapsviewer.

Hugobros3 avatar Hugobros3 commented on May 27, 2024

On Windows you go through the registry:

I added a DWORD key in HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers named
C:\Users\Gobrosse\git\swiftshader\out\build\x64-Release\Windows\vk_swiftshader_icd.json.

The key has to have value zero, otherwise it's ignored. This is following the official vulkan loader documentation.

from vulkancapsviewer.

SaschaWillems avatar SaschaWillems commented on May 27, 2024

Been there done that ;) But at least a current loader will disable that driver because it's not a known icd, see https://github.com/KhronosGroup/Vulkan-Loader/blob/80e9b24ff8e536427b7e99bc0f07792bc9647d10/loader/loader.c#L818. Are you using an older loader?

from vulkancapsviewer.

Hugobros3 avatar Hugobros3 commented on May 27, 2024

I have SDK 1.1.101 installed, that sounds like a very restrictive change on the part of the loader indeed 🤔 Not sure how things would work out for projects such as swiftshader, they don't have a "device" to put these keys in...

from vulkancapsviewer.

SaschaWillems avatar SaschaWillems commented on May 27, 2024

Seems like it was recently introduced. I have opened an Issue on this over at the loader repo.

The change also queries DXGI to see if a device for a vendor is present, so it's not even possible to just rename the swiftshader ICD to something else.

Once this is resolved I'll check how to make the caps viewer work with swiftshader.

from vulkancapsviewer.

Hugobros3 avatar Hugobros3 commented on May 27, 2024

The docs for the loader mention you can use an environment variable (VK_ICD_FILENAMES) to override the ICD search path

set VK_ICD_FILENAMES=\windows\system32\nv-vk64.json

from vulkancapsviewer.

SaschaWillems avatar SaschaWillems commented on May 27, 2024

That one works. Thanks.

And it looks like it's crashing because swiftshader isn't exporting vkGetPhysicalDeviceWin32PresentationSupportKHR.

I'll take a look at how to work around this.

from vulkancapsviewer.

Hugobros3 avatar Hugobros3 commented on May 27, 2024

Both Swiftshader and gfx-portability are in early stages anyway and aren't too usable yet, but it would be really nice exposure and a cool way to track their progress to have them listed on the vulkan.gpuinfo.org DB. If VulkanCapsViewer can't support them right now it's not a big deal, this issue will just track that progress.

from vulkancapsviewer.

SaschaWillems avatar SaschaWillems commented on May 27, 2024

Swiftshader is already able to run most of my samples, and it looks like it's really only about that single function not being exported. Not sure how to handle that yet though.

from vulkancapsviewer.

Hugobros3 avatar Hugobros3 commented on May 27, 2024

Works fine, thanks! :)

Will look into fixing portability too one of those days, it's still quite incomplete in it's DX12 backend ( no descriptor set support if i'm correct, which is obviously quite limiting )

from vulkancapsviewer.

Hugobros3 avatar Hugobros3 commented on May 27, 2024

Could you handle "VK_PHYSICAL_DEVICE_TYPE_CPU" ? The report shows up as "unknown device" on the site

from vulkancapsviewer.

SaschaWillems avatar SaschaWillems commented on May 27, 2024

My patch for gfx-portability was also merged: gfx-rs/portability@a9edbc0

Will also add device_type_cpu in the next update.

from vulkancapsviewer.

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.