vk: Assert on use of uninitialized surface state
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 9 Jan 2016 07:43:20 +0000 (23:43 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 9 Jan 2016 07:51:11 +0000 (23:51 -0800)
commitbbb2a85c8115bd003639e5e854c0753d613cec95
treee74c2dbbe43a9ab2fca0cd2dcb5d0e197e0afbd6
parenta8cdef3dcef0e5da809f306a82aa6ffc9c1e6a71
vk: Assert on use of uninitialized surface state

This exposes a case where we want to anv_CmdCopyBufferToImage() on an
image that wasn't created with VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT and
end up using uninitialized color_rt_surface_state from the meta image
view.
src/vulkan/anv_cmd_buffer.c
src/vulkan/gen7_state.c
src/vulkan/gen8_state.c