Fix test copying zero sized regions
authorMika Isojärvi <misojarvi@google.com>
Tue, 17 May 2016 17:08:40 +0000 (10:08 -0700)
committerMika Isojärvi <misojarvi@google.com>
Tue, 17 May 2016 17:08:40 +0000 (10:08 -0700)
Bug: 28677103
Change-Id: I4c23277f51ab4ea3e28a76ab757d0c2c8fe007d6

external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp

index 961cd17..1dda81a 100644 (file)
@@ -1710,8 +1710,8 @@ tcu::TestCaseGroup* createCopiesAndBlittingTests (tcu::TestContext& testCtx)
                params.src.buffer.size = size;
                params.dst.buffer.size = size * (size + 1);
 
-               // Copy region with size 0..size
-               for (unsigned int i = 0; i <= size; i++)
+               // Copy region with size 1..size
+               for (unsigned int i = 1; i <= size; i++)
                {
                        const VkBufferCopy bufferCopy = {
                                0,              // VkDeviceSize srcOffset;