Merge branch 'jbreton-buffer-test-heap-limit' into 'vulkan-cts-1.0'
authorPyry Haulos <phaulos@google.com>
Mon, 21 Mar 2016 17:28:07 +0000 (10:28 -0700)
committerPyry Haulos <phaulos@google.com>
Mon, 21 Mar 2016 17:28:07 +0000 (10:28 -0700)
commitc709cf8c9f43ac47dcc8eebfaea01c8afb99299b
treea37457b29cdbb345bda234324bf2deadebc23c0b
parent4c5956c7bfde4281dfe7f317950c54e8468a3735
parent7672c92d59a615b7f777a758636126fb29adf9da
Merge branch 'jbreton-buffer-test-heap-limit' into 'vulkan-cts-1.0'

Fix createBuffer tests to clamp the buffer size based on the size of the selected heap

Right now, those tests clamp the allocation size based on the size of heap 0.
This is incorrect if the allocation is not done on heap 0.
In order to get the first compatible heap, we need to create the buffer and then call getBufferMemoryRequirements to query the requirement.

Then if we detect if the size need to be clamped we will recreate another buffer with the clamped size.

Fixes #326

See merge request !464