Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 928dabf4 authored by Adithya Srinivasan's avatar Adithya Srinivasan
Browse files

Move the nested struct inside VkNativeBufferANDROID outside.

The nested struct of VkNativeBufferANDROID in vk_android_native_buffer.h
needs to be moved outside to properly update the vulkan registry as
there is no way of specifying nested structs in the registry yet.

Bug: 136570819
Test: Build and flash, dEQP tests
Change-Id: I8b0db3f0729215f29ba82b6352010c7dd7f47f4e
parent 67e35677
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -61,6 +61,11 @@ typedef enum VkSwapchainImageUsageFlagBitsANDROID {
} VkSwapchainImageUsageFlagBitsANDROID;
typedef VkFlags VkSwapchainImageUsageFlagsANDROID;

typedef struct {
    uint64_t consumer;
    uint64_t producer;
} VkNativeBufferUsage2ANDROID;

typedef struct {
    VkStructureType             sType; // must be VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID
    const void*                 pNext;
@@ -73,10 +78,7 @@ typedef struct {
    int                         format;
    int                         usage; // DEPRECATED in SPEC_VERSION 6
    // -- Added in SPEC_VERSION 6 --
    struct {
        uint64_t                consumer;
        uint64_t                producer;
    } usage2;
    VkNativeBufferUsage2ANDROID usage2;
} VkNativeBufferANDROID;

typedef struct {