From 1c143cea99082289506fdbbbe1c2e3e889402e3d Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Fri, 22 Apr 2016 14:43:48 -0700 Subject: [PATCH] Implement getMemoryLimits() in X11 vulkan platform Bug: 28275297 Change-Id: Iba40570ecc7bd9fff8822617bf95e45fd7427ad2 --- framework/platform/X11/tcuX11Platform.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/framework/platform/X11/tcuX11Platform.cpp b/framework/platform/X11/tcuX11Platform.cpp index c74ed7c..a34dcdf 100644 --- a/framework/platform/X11/tcuX11Platform.cpp +++ b/framework/platform/X11/tcuX11Platform.cpp @@ -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 -- 2.7.4