Fix warnings in shader derivate tests
authorPyry Haulos <phaulos@google.com>
Thu, 7 Jul 2016 18:50:35 +0000 (11:50 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 7 Jul 2016 18:50:35 +0000 (11:50 -0700)
external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderDerivateTests.cpp

index 6f706f6..ba965b3 100644 (file)
@@ -663,9 +663,9 @@ void TriangleDerivateCaseInstance::setupDefaultInputs (void)
                m_values.coordMax.x(), m_values.coordMax.y(), m_values.coordMax.z(),                                                            m_values.coordMin.w()
        };
 
                m_values.coordMax.x(), m_values.coordMax.y(), m_values.coordMax.z(),                                                            m_values.coordMin.w()
        };
 
-       addAttribute(0u, vk::VK_FORMAT_R32G32B32A32_SFLOAT, 4 * sizeof(float), numVertices, positions);
+       addAttribute(0u, vk::VK_FORMAT_R32G32B32A32_SFLOAT, 4 * (deUint32)sizeof(float), numVertices, positions);
        if (m_definitions.coordDataType != glu::TYPE_LAST)
        if (m_definitions.coordDataType != glu::TYPE_LAST)
-               addAttribute(1u, vk::VK_FORMAT_R32G32B32A32_SFLOAT, 4 * sizeof(float), numVertices, coords);
+               addAttribute(1u, vk::VK_FORMAT_R32G32B32A32_SFLOAT, 4 * (deUint32)sizeof(float), numVertices, coords);
 }
 
 tcu::TestStatus TriangleDerivateCaseInstance::iterate (void)
 }
 
 tcu::TestStatus TriangleDerivateCaseInstance::iterate (void)