vk: Allocate subpass attachment in one big block
authorKristian Høgsberg Kristensen <krh@owl.jf.intel.com>
Mon, 4 Jan 2016 06:58:00 +0000 (22:58 -0800)
committerKristian Høgsberg Kristensen <krh@owl.jf.intel.com>
Mon, 4 Jan 2016 18:07:10 +0000 (10:07 -0800)
commitfca1c08e34368dbfa7a10eb1a1508cdd9cda6bf8
tree1cb9fbce47fa9a4961cbc1c37753ea45b1a84496
parent5526c1782a01e73d3deac785449456018b53fd65
vk: Allocate subpass attachment in one big block

This avoids making a lot of small allocations and handles allocation
failure correctly.

Fixes dEQP-VK.api.object_management.alloc_callback_fail.* failures.
src/vulkan/anv_pass.c
src/vulkan/anv_private.h