Fix a few warnings
authorPyry Haulos <phaulos@google.com>
Wed, 16 Dec 2015 19:27:10 +0000 (11:27 -0800)
committerPyry Haulos <phaulos@google.com>
Wed, 16 Dec 2015 19:27:10 +0000 (11:27 -0800)
external/vulkancts/modules/vulkan/shaderexecutor/vktShaderExecutor.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp

index 2d7249e2d8cf4d8c64bb736f4d0be24eeee4e07f..ec18b27caea7c4e3a1a385a282d04f400e8af49c 100644 (file)
@@ -659,7 +659,7 @@ void FragmentOutExecutor::addAttribute (const Context& ctx, Allocator& memAlloc,
        de::MovePtr<Allocation> alloc = memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequirement::HostVisible);
        VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, alloc->getMemory(), alloc->getOffset()));
 
-       deMemcpy(alloc->getHostPtr(), dataPtr, inputSize);
+       deMemcpy(alloc->getHostPtr(), dataPtr, (size_t)inputSize);
        flushMappedMemoryRange(vk, vkDevice, alloc->getMemory(), alloc->getOffset(), inputSize);
 
        m_vertexBuffers.push_back(de::SharedPtr<Unique<VkBuffer> >(new Unique<VkBuffer>(buffer)));
index 94eafa9a4aa1ad4621092240f561d91c4be54920..0a7a8a2622dae0b7e01eeaeb2cdf043d00e65b2c 100644 (file)
@@ -362,7 +362,6 @@ tcu::TestCaseGroup* createNoContractionGroup (tcu::TestContext& testCtx)
 {
        de::MovePtr<tcu::TestCaseGroup> group                   (new tcu::TestCaseGroup(testCtx, "nocontraction", "Test the NoContraction decoration"));
        vector<CaseParameter>                   cases;
-       de::Random                                              rnd                             (deStringHash(group->getName()));
        const int                                               numElements             = 100;
        vector<float>                                   inputFloats1    (numElements, 0);
        vector<float>                                   inputFloats2    (numElements, 0);
@@ -2146,7 +2145,6 @@ bool compareNan (const std::vector<BufferSp>&, const vector<AllocationSp>& outpu
 tcu::TestCaseGroup* createOpQuantizeToF16Group (tcu::TestContext& testCtx)
 {
        de::MovePtr<tcu::TestCaseGroup> group                   (new tcu::TestCaseGroup(testCtx, "opquantize", "Tests the OpQuantizeToF16 instruction"));
-       de::Random                                              rnd                             (deStringHash(group->getName()));
 
        const std::string shader (
                string(s_ShaderPreamble) +