Merge branch 'jbolz_pipeline_barrier_fixes2' into 'master'
authorPyry Haulos <phaulos@google.com>
Wed, 6 Jan 2016 17:47:29 +0000 (12:47 -0500)
committerPyry Haulos <phaulos@google.com>
Wed, 6 Jan 2016 17:47:29 +0000 (12:47 -0500)
commit41975a48ccab96480c1dd2bec9e868219e5e93f3
treebfa84a9975eb7dc47bbdac344693491ea784b12b
parent7589e81762d67f747595c0c5a57357a7e836b0b4
parent8d99d6833cf1542541787b7cc19617e039eb63a2
Merge branch 'jbolz_pipeline_barrier_fixes2' into 'master'

pipeline_barrier: Keep the VkBuffer in the PrepareContext alive until the work is executed...

…, by putting it in the same scope as the execution. Also wait for idle before the destructors are called.

This may not be the best fix, but it works. Buffers can be created and destroyed by various OPs in the test, but I think all the Execute work happens with the last buffer. The test may need some restructuring to using the different buffers.

See merge request !230
external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp