Merge branch 'scygan_timestamp_fixes' into 'master'
authorPyry Haulos <phaulos@google.com>
Wed, 20 Jan 2016 15:41:59 +0000 (10:41 -0500)
committerPyry Haulos <phaulos@google.com>
Wed, 20 Jan 2016 15:41:59 +0000 (10:41 -0500)
Multiple fixes in dEQP-VK.pipeline.timestamp test

This fixes multiple issues in timestamp tests:

1.
`1 << queueProperties[0].timestampValidBits` overflows, calculations should be done in 64bits

2.
`sizeof(m_timestampValues)` is a `sizeof(pointer)`, not number of query pool slots

3.
`cmdResetQueryPool` does not reset all slots before use

4.
images are not transitioned out of UNDEFINED layout before use

5.
multiple objects are used while associated device memory object has been already freed by `~MovePtr<Allocation>` DTOR

6.
`VkImageSubresourceRange` with 0 aspect is used for clears

7.
Bad image usage flags. Especially `VK_IMAGE_USAGE_STORAGE_BIT` does not allow for transfer operations

8.
multisample image is used (resolved), but has unitialised data. Add clear() before use, so resolve() really happens

See merge request !279


Trivial merge