Closed georgewsinger closed 3 years ago
Not sure why you pinged me but this looks like an error which could be caused by a library or gcc update.
Looks like it was fixed in April, but there's been no release since then. The recent vulkan headers bump must have done this.
tree 02e27c467d87ef1c8fc4ada5966990f1cefbc53a
parent b9b72280bf6a437f9b431f8002d3b54751bf3e12
author Christoph Haag <christoph.haag@collabora.com> Mon Apr 19 13:04:59 2021 +0200
committer Christoph Haag <christoph.haag@collabora.com> Mon Apr 19 13:04:59 2021 +0200
comp: Fix warning after Vulkan 1.2.174 VK_NULL_HANDLE change
../src/xrt/compositor/main/comp_layer_renderer.c:317:17: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
317 | .subpass = VK_NULL_HANDLE,
| ^~~~~~~~~~~~~~
diff --git a/src/xrt/compositor/main/comp_layer_renderer.c b/src/xrt/compositor/main/comp_layer_renderer.c
index c59232a9..d8a0a632 100644
--- a/src/xrt/compositor/main/comp_layer_renderer.c
+++ b/src/xrt/compositor/main/comp_layer_renderer.c
@@ -314,7 +314,7 @@ _init_graphics_pipeline(struct comp_layer_renderer *self,
VK_DYNAMIC_STATE_SCISSOR,
},
},
- .subpass = VK_NULL_HANDLE,
+ .subpass = 0,
};
VkResult res;
PR with the proposed fix in https://github.com/NixOS/nixpkgs/pull/144086
Problem. On
nixos-unstable
, attempting to installmonado
(latest PR; latest nix expression) yields:Forked monado code (against latest/bleeding edge commit) yields a more informative compilation error.
I forked monado in SimulaVR/monado, and slightly altered this nix expression to get it to compile. The relevant files:
The compilation error then becomes more subtantial/informative:
This first error is also reproduced if we download the monado source pinned at v21, and run it against the nix expressions linked to above:
Maintainers.
@prusnak @SuperSandro2000 @Profpatsch @expipiplus1
Metadata.