gen8_state: use iview extent to program RENDER_SURFACE_STATE
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 4 Jan 2016 22:53:55 +0000 (14:53 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Jan 2016 23:12:42 +0000 (15:12 -0800)
commit8c0c25abdee557c69cf89d8f1d3624a12b551e74
tree1f2a367febe1b25b120152540a37cec574a42630
parent3f01bbe7f3e2639ca176c7873ea5e16ba16e4042
gen8_state: use iview extent to program RENDER_SURFACE_STATE

When creating an uncompressed ImageView on an compressed Image, the
SurfaceFormat is updated to match the ImageView's. The surface
dimensions must also change so that the HW sees the same size image
instead of a 4x larger one.

Fixes the following error which results from running many VulkanCTS
compressed tests in one shot:
  ResourceError (vk.queueSubmit(queue, 1, &submitInfo, *m_fence):
  VK_ERROR_OUT_OF_DEVICE_MEMORY at
  vktPipelineImageSamplingInstance.cpp:921)

Makes all compressed format tests with a height > 1 pass.
src/vulkan/gen8_state.c