anv: Populate SURFACE_STATE more safely
authorChad Versace <chad.versace@intel.com>
Fri, 15 Jan 2016 18:54:05 +0000 (10:54 -0800)
committerChad Versace <chad.versace@intel.com>
Fri, 15 Jan 2016 19:00:22 +0000 (11:00 -0800)
commit0e420cb67f8eb540bb726cd004f2b4e4fc78af58
tree96a2658d500eeb08600d2e6ddbf99a13309002ea
parenteab6212efd36fadc76e7f6b451d4ecb79b867c3e
anv: Populate SURFACE_STATE more safely

genX_image_view_init allocates up to 3 separate SURFACE_STATE structures,
and populates each from a single template. Stop mutating the template
between each final SURFACE_STATE.
src/vulkan/gen7_state.c
src/vulkan/gen8_state.c