OSDN Git Service

anv/meta: Fix hardcoded format size in anv_CmdCopy*
authorChad Versace <chad.versace@intel.com>
Thu, 7 Jan 2016 21:46:20 +0000 (13:46 -0800)
committerChad Versace <chad.versace@intel.com>
Thu, 7 Jan 2016 21:56:58 +0000 (13:56 -0800)
commit4c7f4c25d03cb1bd88fade526386e50e45e71e87
treeb4593a1fea5ee81a5052d750210fa198513b9416
parenta50c78a5cfb760f88b3d053efc4e58dca8d66ff5
anv/meta: Fix hardcoded format size in anv_CmdCopy*

When looping through VkBufferImageCopy regions, for each region we
incremented the offset into the VkBuffer assuming the format size was 4.

Fixes CTS tests dEQP-VK.pipeline.image.view_type.cube_array.3d.* on
Skylake.
src/vulkan/anv_meta.c