From: Pyry Haulos Date: Mon, 21 Mar 2016 17:28:07 +0000 (-0700) Subject: Merge branch 'jbreton-buffer-test-heap-limit' into 'vulkan-cts-1.0' X-Git-Tag: upstream/0.1.0~812^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c709cf8c9f43ac47dcc8eebfaea01c8afb99299b;p=platform%2Fupstream%2FVK-GL-CTS.git 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 --- c709cf8c9f43ac47dcc8eebfaea01c8afb99299b