Skip to content

PrimusVK: Layouts don't match at all #35

@cosmincrihan

Description

@cosmincrihan

Thank you for the solution provided for Optimus laptops!
I tried your implementation, followed all the steps, but unfortunately I receive the following error when I test it (full log here):

cosmin@debian-gl553v:~/primus_vk$ ENABLE_PRIMUS_LAYER=1 optirun vulkan-smoketest
PrimusVK: CreateInstance
PrimusVK: Getting devices
PrimusVK: Searching for display GPU:
PrimusVK: 0x55a698e53580: 
PrimusVK: Got integrated gpu!
PrimusVK: Device: Intel(R) Kabylake GT2
PrimusVK:   Type: 1
PrimusVK: Searching for render GPU:
PrimusVK: 0x55a698e53580: 
PrimusVK: 0x55a698e53580: 
PrimusVK: Got discrete gpu!
PrimusVK: Device: GeForce GTX 1050 Ti
PrimusVK:   Type: 2
PrimusVK: in function: creating device
PrimusVK: Extension: 3
PrimusVK: Extension: 48
PrimusVK: Extension: 48
PrimusVK: spawning secondary device creation: 0x55a699295da8
PrimusVK: After reset:0
PrimusVK: Thread running
PrimusVK: getting rendering suff: 0x55a698e53580
PrimusVK: fetching dispatch for 0x55a699313100
PrimusVK: GetDeviceProcAddr is: 0x7fb4acd1d2f0
PrimusVK: Create Swapchain KHR is: 0x7fb4acd36060
PrimusVK: CreateDevice done
PrimusVK: Gpus: 2
PrimusVK: phys[1]: 0x7fb498000980
PrimusVK: render queues: 1
PrimusVK:  flags: 7
PrimusVK: in function: creating device
PrimusVK: Extension: 3
PrimusVK: Extension: 48
PrimusVK: Extension: 48
PrimusVK: Support: 0x55a698e53580, 1
PrimusVK: fetching dispatch for 0x7fb498002aa0
PrimusVK: GetDeviceProcAddr is: 0x7fb4acd1d2f0
PrimusVK: Create Swapchain KHR is: 0x7fb4acd36060
PrimusVK: CreateDevice done
PrimusVK: Create Graphics FINISHED!: 0
PrimusVK: Display: 0x7fb498002aa0
PrimusVK: storing as reference to: 0x55a699313100
PrimusVK: joining secondary device creation
PrimusVK: When startup hangs here, you have probably hit the initialization deadlock
PrimusVK: joining succeeded. Luckily initialization deadlock did not occur.
PrimusVK: Application requested 2 images.
PrimusVK: Creating Swapchain for size: 1280x1001
PrimusVK: MinImageCount: 3
PrimusVK: fetching device for: 0x55a699313100
PrimusVK: found: 0x7fb498002aa0
PrimusVK: FamilyIndexCount: 0
PrimusVK: Dev: 0x7fb498002aa0
PrimusVK: Swapchainfunc: 0x7fb4acd36060
PrimusVK: >> Swapchain create done 0;0x55a6994a2dc0
PrimusVK: Image aquiring: 3
PrimusVK: Selected render mem: 9;7 display: 0
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating image: 1280x1001
PrimusVK: Creating a Swapchain thread.
PrimusVK: Get Swapchain Images buffer: 0x55a69949a320
PrimusVK: Count: 3
PrimusVK: Layouts don't match at all
terminate called after throwing an instance of 'std::runtime_error'
  what():  Layouts don't match at all
cosmin@debian-gl553v:~/primus_vk$

nvidia-smi

Fri May  3 23:29:08 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.116                Driver Version: 390.116                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   42C    P0    N/A /  N/A |      0MiB /  4042MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Debian 9.9 Stretch
GeForce GTX 1050 Ti
Bumblebee installed and working without DXVK, currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions