Merge "Add the support to device connection via TCP/IP" into marshmallow-cts-dev...
[platform/upstream/VK-GL-CTS.git] / framework / platform / null / tcuNullPlatform.cpp
index ea790e5..032ee18 100644 (file)
@@ -26,6 +26,7 @@
 #include "tcuNullRenderContext.hpp"
 #include "egluNativeDisplay.hpp"
 #include "eglwLibrary.hpp"
+#include "vkNullDriver.hpp"
 
 namespace tcu
 {
@@ -74,6 +75,21 @@ Platform::~Platform (void)
 {
 }
 
+vk::Library* Platform::createLibrary (void) const
+{
+       return vk::createNullDriver();
+}
+
+void Platform::getMemoryLimits (vk::PlatformMemoryLimits& limits) const
+{
+       limits.totalSystemMemory                                        = 256*1024*1024;
+       limits.totalDeviceLocalMemory                           = 0;
+       limits.deviceMemoryAllocationGranularity        = 4096;
+       limits.devicePageSize                                           = 4096;
+       limits.devicePageTableEntrySize                         = 8;
+       limits.devicePageTableHierarchyLevels           = 3;
+}
+
 } // null
 } // tcu