#include "tcuFormatUtil.hpp"
#include "tcuCommandLine.hpp"
#include "tcuPlatform.hpp"
+#include "deDefs.h"
#include "deStringUtil.hpp"
#include "vktApiFeatureInfo.hpp"
case DE_CPU_ARM_64: return "DE_CPU_ARM_64";
case DE_CPU_MIPS: return "DE_CPU_MIPS";
case DE_CPU_MIPS_64: return "DE_CPU_MIPS_64";
+ case DE_CPU_RISCV_32: return "DE_CPU_RISCV_32";
+ case DE_CPU_RISCV_64: return "DE_CPU_RISCV_64";
default:
return de::toString(cpu);
}
{
// \note Must be ordered from largest to smallest
{ "TiB", 1ull<<40ull },
- { "MiB", 1ull<<20ull },
{ "GiB", 1ull<<30ull },
+ { "MiB", 1ull<<20ull },
{ "KiB", 1ull<<10ull },
};
static const SizeUnit s_defaultUnit = { "B", 1u };
for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(s_units); ++ndx)
{
+ DE_ASSERT(ndx == DE_LENGTH_OF_ARRAY(s_units) ||
+ s_units[ndx].value > s_units[ndx + 1].value);
if (value >= s_units[ndx].value)
return &s_units[ndx];
}
tcu::TestStatus logPlatformMemoryLimits (Context& context)
{
TestLog& log = context.getTestContext().getLog();
- vk::PlatformMemoryLimits limits;
+ tcu::PlatformMemoryLimits limits;
- context.getTestContext().getPlatform().getVulkanPlatform().getMemoryLimits(limits);
+ context.getTestContext().getPlatform().getMemoryLimits(limits);
log << TestLog::Message << "totalSystemMemory = " << prettySize(limits.totalSystemMemory) << " (" << limits.totalSystemMemory << ")\n"
<< "totalDeviceLocalMemory = " << prettySize(limits.totalDeviceLocalMemory) << " (" << limits.totalDeviceLocalMemory << ")\n"