<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 25, 2017 at 12:12 PM, Chad Versace <span dir="ltr"><<a href="mailto:chadversary@chromium.org" target="_blank">chadversary@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The struct was deleted by:<br>
  commit efe9d1cde3340d3a9d17e5560b609a<wbr>4fb839d43d<br>
  Author: Edward O'Callaghan <<a href="mailto:funfunctor@folklore1984.net">funfunctor@folklore1984.net</a>><br>
  Subject: anv: Clean up some unused variables<br>
<br>
Unlike the original anv_common, the new one has a non-const pNext<br>
pointer because we will use it for the output structs of<br>
VK_KHR_get_physical_device_<wbr>properties2.<br>
---<br>
 src/intel/vulkan/anv_private.h | 5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/anv_<wbr>private.h b/src/intel/vulkan/anv_<wbr>private.h<br>
index de50dff1a8..2a071693ca 100644<br>
--- a/src/intel/vulkan/anv_<wbr>private.h<br>
+++ b/src/intel/vulkan/anv_<wbr>private.h<br>
@@ -1831,6 +1831,11 @@ void anv_dump_finish(void);<br>
 void anv_dump_add_framebuffer(<wbr>struct anv_cmd_buffer *cmd_buffer,<br>
                               struct anv_framebuffer *fb);<br>
<br>
+struct anv_common {<br>
+    VkStructureType sType;<br>
+    void *pNext;<br></blockquote><div><br></div><div>I've found that it's more convenient for struct walking if this is a struct anv_common *<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+};<br>
+<br>
 #define ANV_DEFINE_HANDLE_CASTS(__anv_<wbr>type, __VkType)                      \<br>
                                                                            \<br>
    static inline struct __anv_type *                                       \<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>