dEQP-VK.api.image_clearing: Use the correct aspects for depth/stencil attachments
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 22 Oct 2016 16:16:55 +0000 (09:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 25 Oct 2016 05:27:28 +0000 (01:27 -0400)
commitda3cd064fc4b28074bfc0dfcc50bee98998359fb
tree524fc4c98e95212dbf636635e5e9d374c66ab84a
parent737af9b128f3c1be3799196c56c94fd77741e7a1
dEQP-VK.api.image_clearing: Use the correct aspects for depth/stencil attachments

These tests were blindly setting the aspectMask field of VkClearAttachment
to VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT even though the
format of the attachment may be a depth-only format.  This affects the
following tests:

dEQP-VK.api.image_clearing.clear_depth_stencil_attachment.2d_d16_unorm
dEQP-VK.api.image_clearing.clear_depth_stencil_attachment.2d_d32_sfloat
dEQP-VK.api.image_clearing.clear_depth_stencil_attachment.2d_x8_d24_unorm_pack32
dEQP-VK.api.image_clearing.partial_clear_depth_stencil_attachment.2d_d16_unorm
dEQP-VK.api.image_clearing.partial_clear_depth_stencil_attachment.2d_d32_sfloat
dEQP-VK.api.image_clearing.partial_clear_depth_stencil_attachment.2d_x8_d24_unorm_pack32

Change-Id: I7c0de07de97ae8529e429c26b1b99798cc1443a4
external/vulkancts/modules/vulkan/api/vktApiImageClearingTests.cpp