DE_UNREF(queueFamilyIndex);
if (pQueue)
- *pQueue = reinterpret_cast<VkQueue>(queueIndex + 1);
+ *pQueue = reinterpret_cast<VkQueue>((deUint64)queueIndex + 1);
}
VKAPI_ATTR void VKAPI_CALL getBufferMemoryRequirements (VkDevice, VkBuffer bufferHandle, VkMemoryRequirements* requirements)
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);
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 =
{
deInt64 signExtend (deUint64 src, int bits)
{
- const deUint64 signBit = 1u << (bits-1);
+ const deUint64 signBit = 1ull << (bits-1);
src |= ~((src & signBit) - 1);
#include <stdarg.h>
#include <stdlib.h>
-#if DE_OS == DE_OS_UNIX
+#if (DE_OS == DE_OS_UNIX)
# include <unistd.h>
# include <execinfo.h>
# include <errno.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+
+/* DbgHelp.h generates C4091 */
+#pragma warning (push)
+#pragma warning (disable: 4091)
#include <DbgHelp.h>
+#pragma warning (pop)
struct qpCrashHandler_s
{