1 /*------------------------------------------------------------------------- 2 * drawElements Quality Program Tester Core 3 * ---------------------------------------- 4 * 5 * Copyright 2014 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 * 19 *//*! 20 * \file 21 * \brief Platform (OS) specific services. 22 *//*--------------------------------------------------------------------*/ 23 24 #include "tcuPlatform.hpp" 25 26 namespace tcu 27 { 28 Platform(void)29Platform::Platform(void) 30 { 31 } 32 ~Platform(void)33Platform::~Platform(void) 34 { 35 } 36 processEvents(void)37bool Platform::processEvents(void) 38 { 39 return true; 40 } 41 getGLPlatform(void) const42const glu::Platform &Platform::getGLPlatform(void) const 43 { 44 TCU_THROW(NotSupportedError, "OpenGL (ES) is not supported"); 45 } 46 getEGLPlatform(void) const47const eglu::Platform &Platform::getEGLPlatform(void) const 48 { 49 TCU_THROW(NotSupportedError, "EGL is not supported"); 50 } 51 getVulkanPlatform(void) const52const vk::Platform &Platform::getVulkanPlatform(void) const 53 { 54 TCU_THROW(NotSupportedError, "Vulkan is not supported"); 55 } 56 getMemoryLimits(PlatformMemoryLimits & limits) const57void Platform::getMemoryLimits(PlatformMemoryLimits &limits) const 58 { 59 // Default values. Platforms can override these values. 60 limits.totalSystemMemory = 256 * 1024 * 1024; 61 limits.totalDeviceLocalMemory = 128 * 1024 * 1024; 62 limits.deviceMemoryAllocationGranularity = 64 * 1024; 63 limits.devicePageSize = 4096; 64 limits.devicePageTableEntrySize = 8; 65 limits.devicePageTableHierarchyLevels = 3; 66 } 67 68 } // namespace tcu 69