Do not require unsupported sparse images in image_format_properties test
authorSlawomir Cygan <slawomir.cygan@intel.com>
Tue, 10 Jan 2017 15:59:29 +0000 (16:59 +0100)
committerPyry Haulos <phaulos@google.com>
Thu, 9 Feb 2017 17:51:10 +0000 (12:51 -0500)
commitb788e7ed33968a201f44d0b5f25ac04e4bbb61a0
treec71b378f74dcfe0f48e9f04c420cee7987b5bff1
parent7602b3b0be5909a6fd598cb6e8006ebb88bac290
Do not require unsupported sparse images in image_format_properties test

Affects tests: dEQP-VK.api.info.image_format_properties*

This change removes the requirement for supporting sparse residency images:
- with compressed format
- with non-color format
- with format of pixel size that is not power ot two (for example: RGB).

 Additionally do not require 1D sparse residency images (not in spec),
 and require 2D/3D residency images basing on the device capabilities.

Spec 28.1. Sparse Resource Features:
"A sparse image created using VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT
supports all non-compressed color formats with power-of-two element
size that non-sparse usage supports.

(...)

sparseResidencyImage2D: Support for creating 2D single-sampled VkImage
objects with VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT.

sparseResidencyImage3D: Support for creating 3D VkImage objects with
 VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT.
"

Component: Vulkan
VK-GL-CTS Issue: 131

(cherry picked from commit 5534b44a15b530ece4b310e1dd935fb9b0cefeb6)

Change-Id: Ia2481fbcd12a32a6470af26df213a2f930c2e6db
external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp