Fix required sample count tests
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 19 Apr 2016 19:13:58 +0000 (12:13 -0700)
committerPyry Haulos <phaulos@google.com>
Mon, 1 Aug 2016 20:21:23 +0000 (13:21 -0700)
commit8753a9e7528ca67b25bfabb4f03915a25721a690
tree2cf3e95f6f74fc66d828ba8be995b7b1d92fff20
parent7b50a122bda38d039f25c90da05caaebb497542d
Fix required sample count tests

According to,

   Table 11.1. Image and image view parameter compatibility requirements

Only non-cube images with type VK_IMAGE_TYPE_2D can have sample counts
greater than one.

In addition, the following properties should hold for multisampled
images: the formats must support being used in a color or depth/stencil
attachment, or in a storage image when shaderStorageImageMultisample is
supported. Images not fitting the above descriptions may have a sample
count of one or zero (in error conditions). Align tests for sample
counts to this behavior.

(cherry picked from commit dc4227d5ec87080f5dad810b5e33ae3b3fa014a4)
external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp