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)
commit6cc39db745b43ced1dee8ecd889cc39f84415a5c
tree9182a65360e3b3f695fbc2a1a276733ba3a4df41
parente89a0ecbf14d20e611b200490b95a2ddee9793d0
parent931ca73d7a2d8f164a704431647a89bda9fc7403
Merge branch 'scygan_timestamp_fixes' into 'master'

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