Implement getMemoryLimits() in X11 vulkan platform
authorPyry Haulos <phaulos@google.com>
Fri, 22 Apr 2016 21:43:48 +0000 (14:43 -0700)
committerPyry Haulos <phaulos@google.com>
Fri, 22 Apr 2016 21:43:48 +0000 (14:43 -0700)
Bug: 28275297
Change-Id: Iba40570ecc7bd9fff8822617bf95e45fd7427ad2

framework/platform/X11/tcuX11Platform.cpp

index c74ed7c..a34dcdf 100644 (file)
@@ -92,6 +92,16 @@ public:
                dst << "OS: " << sysInfo.sysname << " " << sysInfo.release << " " << sysInfo.version << "\n";
                dst << "CPU: " << sysInfo.machine << "\n";
        }
+
+       void getMemoryLimits (vk::PlatformMemoryLimits& limits) const
+       {
+               limits.totalSystemMemory                                        = 256*1024*1024;
+               limits.totalDeviceLocalMemory                           = 128*1024*1024;
+               limits.deviceMemoryAllocationGranularity        = 64*1024;
+               limits.devicePageSize                                           = 4096;
+               limits.devicePageTableEntrySize                         = 8;
+               limits.devicePageTableHierarchyLevels           = 3;
+       }
 };
 
 class X11Platform : public tcu::Platform