tests: Fix UncompressedToCompressedImageCopy
authorCort Stratton <cort@google.com>
Tue, 28 Nov 2017 21:11:37 +0000 (13:11 -0800)
committerCort <1944792+cdwfs@users.noreply.github.com>
Tue, 28 Nov 2017 23:12:52 +0000 (15:12 -0800)
Created images were implicitly using TILING_LINEAR,
despite testing for TILING_OPTIMAL support.

Fixes failure on Vega mentioned in #2153

tests/layer_validation_tests.cpp

index 72332ea..c2215d2 100644 (file)
@@ -20260,10 +20260,10 @@ TEST_F(VkPositiveLayerTest, UncompressedToCompressedImageCopy) {
         return;
     }
 
-    uncomp_color_image.Init(3, 3, 1, VK_FORMAT_R16G16B16A16_UINT,
-                            VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT);
+    uncomp_color_image.Init(3, 3, 1, VK_FORMAT_R16G16B16A16_UINT, VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT,
+                            VK_IMAGE_TILING_OPTIMAL);
     comp_color_image.Init(12, 12, 1, VK_FORMAT_BC1_RGBA_SRGB_BLOCK,
-                          VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT);
+                          VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT, VK_IMAGE_TILING_OPTIMAL);
 
     if (!uncomp_color_image.initialized() || !comp_color_image.initialized()) {
         printf("             Unable to initialize surfaces - UncompressedToCompressedImageCopy skipped.\n");