Keep buffer memory alive through BufferView creation
authorGary Sweet <gsweet@broadcom.com>
Wed, 26 Jul 2017 09:50:31 +0000 (10:50 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 11 Aug 2017 15:13:53 +0000 (11:13 -0400)
commitaa426b6fa2b92fcd9151cc7ab3ef43c49cee9372
tree09037facf54af42f79c201814011062a6744d506
parent9909b9f3f0a9a53c8703ffee801787672e230660
Keep buffer memory alive through BufferView creation

The device memory used to create a buffer was going out
of scope and being freed too early. A buffer view was
subsequently made using the buffer. This is invalid.

This change extends the lifetime of the buffer memory to
match the buffer.

Affects:

dEQP-VK.api.buffer_view.create.*

Components: Vulkan

VK-GL-CTS issue: 574

Change-Id: I6605da750d6494587781285447a157ef12018459
external/vulkancts/modules/vulkan/api/vktApiBufferViewCreateTests.cpp