rasterization: Use LOAD_OP_DONT_CARE for the resolve attachment
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Jun 2016 21:04:26 +0000 (14:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Jun 2016 18:10:04 +0000 (11:10 -0700)
It used to use LOAD_OP_CLEAR for the resolve attachment but only provided
one clear value which led to an out-of-bounds read.

external/vulkancts/modules/vulkan/rasterization/vktRasterizationTests.cpp

index 9d41351..6f55d98 100644 (file)
@@ -386,7 +386,7 @@ BaseRenderingTestInstance::BaseRenderingTestInstance (Context& context, VkSample
                                0u,                                                                                                     // VkAttachmentDescriptionFlags         flags;
                                m_imageFormat,                                                                          // VkFormat                                                     format;
                                VK_SAMPLE_COUNT_1_BIT,                                                          // VkSampleCountFlagBits                        samples;
-                               VK_ATTACHMENT_LOAD_OP_CLEAR,                                            // VkAttachmentLoadOp                           loadOp;
+                               VK_ATTACHMENT_LOAD_OP_DONT_CARE,                                        // VkAttachmentLoadOp                           loadOp;
                                VK_ATTACHMENT_STORE_OP_STORE,                                           // VkAttachmentStoreOp                          storeOp;
                                VK_ATTACHMENT_LOAD_OP_DONT_CARE,                                        // VkAttachmentLoadOp                           stencilLoadOp;
                                VK_ATTACHMENT_STORE_OP_DONT_CARE,                                       // VkAttachmentStoreOp                          stencilStoreOp;