Module: Mesa
Branch: main
Commit: aa0c54353387d2b41034614e44c58272964f079c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa0c54353387d2b41034614e44c58272964f079c

Author: Boris Brezillon <[email protected]>
Date:   Wed Mar 23 02:40:09 2022 -0700

lavapipe: Don't use VK_OUTARRAY_MAKE()/vk_outarray_append()

MSVC doesn't support typeof(). If we want to keep compiling radv on
windows we need to use the typed variants of those macros.

Fixes: dc8fdab71efd ("lavapipe: Use VK_OUTARRAY for 
GetPhysicalDeviceQueueFamilyProperties[2]")
Acked-by: Daniel Stone <[email protected]>
Acked-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15518>

---

 src/gallium/frontends/lavapipe/lvp_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/frontends/lavapipe/lvp_device.c 
b/src/gallium/frontends/lavapipe/lvp_device.c
index ce0cc0257b7..0ee583a081a 100644
--- a/src/gallium/frontends/lavapipe/lvp_device.c
+++ b/src/gallium/frontends/lavapipe/lvp_device.c
@@ -1235,9 +1235,9 @@ VKAPI_ATTR void VKAPI_CALL 
lvp_GetPhysicalDeviceQueueFamilyProperties2(
    uint32_t*                                   pCount,
    VkQueueFamilyProperties2                   *pQueueFamilyProperties)
 {
-   VK_OUTARRAY_MAKE(out, pQueueFamilyProperties, pCount);
+   VK_OUTARRAY_MAKE_TYPED(VkQueueFamilyProperties2, out, 
pQueueFamilyProperties, pCount);
 
-   vk_outarray_append(&out, p) {
+   vk_outarray_append_typed(VkQueueFamilyProperties2, &out, p) {
       p->queueFamilyProperties = (VkQueueFamilyProperties) {
          .queueFlags = VK_QUEUE_GRAPHICS_BIT |
          VK_QUEUE_COMPUTE_BIT |

Reply via email to