Fix warning in getDeviceMemoryCommitment tests
authorPyry Haulos <phaulos@google.com>
Tue, 17 Jan 2017 19:40:25 +0000 (11:40 -0800)
committerPyry Haulos <phaulos@google.com>
Tue, 31 Jan 2017 20:29:10 +0000 (12:29 -0800)
Change-Id: I5697999b2d9d313b74a2d716abacc66fb5f19d8d

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

index 44d1a17..e991797 100644 (file)
@@ -114,7 +114,7 @@ tcu::TestStatus MemoryCommitmentTestInstance::iterate(void)
        Move<VkShaderModule>                                    fragmentShaderModule;
        Move<VkPipeline>                                                graphicsPipelines;
 
-       if(memoryTypeIndex == -1u)
+       if (memoryTypeIndex == static_cast<deUint32>(-1))
                TCU_THROW(NotSupportedError, "Lazily allocated bit is not supported");
 
        const VkImageCreateInfo imageParams                     =
@@ -677,7 +677,8 @@ deUint32 MemoryCommitmentTestInstance::getMemoryTypeIndex(VkMemoryPropertyFlags
                if((pMemoryProperties.memoryTypes[memoryTypeIndex].propertyFlags & propertyFlag) == propertyFlag)
                        return memoryTypeIndex;
        }
-       return -1u;
+
+       return static_cast<deUint32>(-1);
 }
 
 void MemoryCommitmentTestCase::initPrograms (SourceCollections& programCollection) const