commit | 0379a8dff683e488bc6d2aa8988bf9c95b3e9caa | [log] [tgz] |
---|---|---|
author | Jesse Hall <jessehall@google.com> | Wed May 16 16:56:54 2018 -0700 |
committer | Alexander Galazin <Alexander.Galazin@arm.com> | Fri May 18 06:37:41 2018 -0400 |
tree | fb993e1cf54a60ec3b346d86d5a424e0e0630046 | |
parent | 7db104e6fa3ca82e014684854442c0ba6b58de2f [diff] |
Limit protected swapchain images based on memory A surface's maxImageCount isn't based on the swapchain image extents or format, so it's valid for swapchain creation to fail for out-of-memory reasons even when the image count is within the supported range. This is particularly problematic for protected swapchains, since many implementations have a limit on the total amount of protected memory that can be allocated which is much smaller than total device memory. This change estimates how much memory is used by protected swapchain images, compares that to the size of heaps that support protected memory types, and doesn't try to create swapchains that would have more images than would fit within that size. Components: Vulkan VK-GL-CTS Issue: 1167 Affects: dEQP-VK.protected_memory.interaction.wsi.*.swapchain.create.min_image_count Change-Id: I6cc3bd25f7f22de8424f9e3375ade35fac26a884
This repository contains a GPU testing suite called dEQP (drawElements Quality Program). dEQP contains tests for several graphics APIs, including OpenGL ES, EGL, and Vulkan.
Up-to-date documentation for the dEQP is available at Android Open Source Project site.
This repository includes Khronos Vulkan CTS under external/vulkancts
directory. For more information see Vulkan CTS README.
This repository includes Khronos OpenGL / OpenGL ES CTS under external/openglcts
directory. For more information see OpenGL / OpenGL ES CTS README.