From: Pyry Haulos Date: Mon, 14 Nov 2016 17:05:16 +0000 (-0800) Subject: Fix warnings reported by VS 2015 X-Git-Tag: upstream/0.1.0~661 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6904decfe59b28cd10ec91ea00657d5851362f4d;p=platform%2Fupstream%2FVK-GL-CTS.git Fix warnings reported by VS 2015 Change-Id: Ifc12df928d6d2f939d01c39a55a48bf861c51be7 --- diff --git a/external/vulkancts/framework/vulkan/vkNullDriver.cpp b/external/vulkancts/framework/vulkan/vkNullDriver.cpp index 80a2047..3ee23bf 100644 --- a/external/vulkancts/framework/vulkan/vkNullDriver.cpp +++ b/external/vulkancts/framework/vulkan/vkNullDriver.cpp @@ -789,7 +789,7 @@ VKAPI_ATTR void VKAPI_CALL getDeviceQueue (VkDevice device, deUint32 queueFamily DE_UNREF(queueFamilyIndex); if (pQueue) - *pQueue = reinterpret_cast(queueIndex + 1); + *pQueue = reinterpret_cast((deUint64)queueIndex + 1); } VKAPI_ATTR void VKAPI_CALL getBufferMemoryRequirements (VkDevice, VkBuffer bufferHandle, VkMemoryRequirements* requirements) diff --git a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp index 7ff2f9e..ecdd37d 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp @@ -1728,7 +1728,7 @@ bool BlittingImages::checkClampedAndUnclampedResult(const tcu::ConstPixelBufferA if (isFloatFormat(mapTextureFormat(dstFormat))) { const bool srcIsSRGB = tcu::isSRGB(srcFormat); - const tcu::Vec4 srcMaxDiff = getFormatThreshold(srcFormat) * tcu::Vec4(srcIsSRGB ? 2 : 1); + const tcu::Vec4 srcMaxDiff = getFormatThreshold(srcFormat) * tcu::Vec4(srcIsSRGB ? 2.0f : 1.0f); const tcu::Vec4 dstMaxDiff = getFormatThreshold(dstFormat); const tcu::Vec4 threshold = tcu::max(srcMaxDiff, dstMaxDiff); diff --git a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationBasicSemaphoreTests.cpp b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationBasicSemaphoreTests.cpp index a28c11d..5dfe6f9 100644 --- a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationBasicSemaphoreTests.cpp +++ b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationBasicSemaphoreTests.cpp @@ -132,8 +132,8 @@ tcu::TestStatus basicMultiQueueCase (Context& context) VkDeviceQueueCreateInfo queueInfos[COUNT]; Queues queues[COUNT] = { - {DE_NULL, NO_MATCH_FOUND}, - {DE_NULL, NO_MATCH_FOUND} + {DE_NULL, (deUint32)NO_MATCH_FOUND}, + {DE_NULL, (deUint32)NO_MATCH_FOUND} }; const VkCommandBufferBeginInfo info = { diff --git a/external/vulkancts/modules/vulkan/texture/vktSampleVerifierUtil.cpp b/external/vulkancts/modules/vulkan/texture/vktSampleVerifierUtil.cpp index dfd4c5a..c7ad274 100644 --- a/external/vulkancts/modules/vulkan/texture/vktSampleVerifierUtil.cpp +++ b/external/vulkancts/modules/vulkan/texture/vktSampleVerifierUtil.cpp @@ -608,7 +608,7 @@ namespace deInt64 signExtend (deUint64 src, int bits) { - const deUint64 signBit = 1u << (bits-1); + const deUint64 signBit = 1ull << (bits-1); src |= ~((src & signBit) - 1); diff --git a/framework/qphelper/qpCrashHandler.c b/framework/qphelper/qpCrashHandler.c index 792ae37..409397f 100644 --- a/framework/qphelper/qpCrashHandler.c +++ b/framework/qphelper/qpCrashHandler.c @@ -33,7 +33,7 @@ #include #include -#if DE_OS == DE_OS_UNIX +#if (DE_OS == DE_OS_UNIX) # include # include # include @@ -137,7 +137,12 @@ static void defaultCrashHandler (qpCrashHandler* crashHandler, void* userPtr) #define WIN32_LEAN_AND_MEAN #include + +/* DbgHelp.h generates C4091 */ +#pragma warning (push) +#pragma warning (disable: 4091) #include +#pragma warning (pop) struct qpCrashHandler_s {