anv: Revive struct anv_common
authorChad Versace <chadversary@chromium.org>
Wed, 25 Jan 2017 21:53:00 +0000 (13:53 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 26 Jan 2017 03:18:33 +0000 (19:18 -0800)
The struct was deleted by:
  commit efe9d1cde3340d3a9d17e5560b609a4fb839d43d
  Author: Edward O'Callaghan <funfunctor@folklore1984.net>
  Subject: anv: Clean up some unused variables

Unlike the original anv_common, the new one has a non-const pNext
pointer because we will use it for the output structs of
VK_KHR_get_physical_device_properties2.

v2:
  - Retype pNext from void* to struct anv_common*.

Reviewed-by: Jason Ekstranad <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_private.h

index de50dff1a84bd0e5584ab13bfef4c8441d369f41..12ee79d3d89468292359724abec87b204a262bf2 100644 (file)
@@ -1831,6 +1831,11 @@ void anv_dump_finish(void);
 void anv_dump_add_framebuffer(struct anv_cmd_buffer *cmd_buffer,
                               struct anv_framebuffer *fb);
 
+struct anv_common {
+    VkStructureType sType;
+    struct anv_common *pNext;
+};
+
 #define ANV_DEFINE_HANDLE_CASTS(__anv_type, __VkType)                      \
                                                                            \
    static inline struct __anv_type *                                       \