Hash :
49d0a332
Author :
Date :
2025-04-08T16:07:17
Vulkan: Remove ring buffer allocators * Removed the ring buffer allocator functionality from ANGLE: angle::RingBufferAllocator * Also removed the related common files. * (Pool allocators will be used at all times.) * Removed the placeholder functions from the pool allocator. * Removed the following BUILD flag: angle_enable_vulkan_shared_ring_buffer_cmd_alloc * Removed redundant line from ContextVk. Bug: b/410036490 Change-Id: I368fb93a66ddfd192018b09f65004a32339abd5a Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6442640 Reviewed-by: Igor Nazarov <i.nazarov@samsung.com> Commit-Queue: Amirali Abdolrashidi <abdolrashidi@google.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
# Copyright 2022 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../../../gni/angle.gni")
vulkan_backend_sources = [
"AllocatorHelperPool.cpp",
"AllocatorHelperPool.h",
"BufferVk.cpp",
"BufferVk.h",
"CommandQueue.cpp",
"CommandQueue.h",
"CompilerVk.cpp",
"CompilerVk.h",
"ContextVk.cpp",
"ContextVk.h",
"DebugAnnotatorVk.cpp",
"DebugAnnotatorVk.h",
"DeviceVk.cpp",
"DeviceVk.h",
"DisplayVk.cpp",
"DisplayVk.h",
"DisplayVk_api.h",
"FenceNVVk.cpp",
"FenceNVVk.h",
"FramebufferVk.cpp",
"FramebufferVk.h",
"ImageVk.cpp",
"ImageVk.h",
"MemoryObjectVk.cpp",
"MemoryObjectVk.h",
"MemoryTracking.cpp",
"MemoryTracking.h",
"OverlayVk.cpp",
"OverlayVk.h",
"PersistentCommandPool.cpp",
"PersistentCommandPool.h",
"ProgramExecutableVk.cpp",
"ProgramExecutableVk.h",
"ProgramPipelineVk.cpp",
"ProgramPipelineVk.h",
"ProgramVk.cpp",
"ProgramVk.h",
"QueryVk.cpp",
"QueryVk.h",
"RenderTargetVk.cpp",
"RenderTargetVk.h",
"RenderbufferVk.cpp",
"RenderbufferVk.h",
"SamplerVk.cpp",
"SamplerVk.h",
"SecondaryCommandBuffer.cpp",
"SecondaryCommandBuffer.h",
"SecondaryCommandPool.cpp",
"SecondaryCommandPool.h",
"SemaphoreVk.cpp",
"SemaphoreVk.h",
"ShaderInterfaceVariableInfoMap.cpp",
"ShaderInterfaceVariableInfoMap.h",
"ShaderVk.cpp",
"ShaderVk.h",
"ShareGroupVk.cpp",
"ShareGroupVk.h",
"Suballocation.cpp",
"Suballocation.h",
"SurfaceVk.cpp",
"SurfaceVk.h",
"SyncVk.cpp",
"SyncVk.h",
"TextureVk.cpp",
"TextureVk.h",
"TransformFeedbackVk.cpp",
"TransformFeedbackVk.h",
"UtilsVk.cpp",
"UtilsVk.h",
"VertexArrayVk.cpp",
"VertexArrayVk.h",
"VkImageImageSiblingVk.cpp",
"VkImageImageSiblingVk.h",
"VulkanSecondaryCommandBuffer.cpp",
"VulkanSecondaryCommandBuffer.h",
"android/vk_android_utils.cpp",
"android/vk_android_utils.h",
"spv_utils.cpp",
"spv_utils.h",
"vk_cache_utils.cpp",
"vk_cache_utils.h",
"vk_caps_utils.cpp",
"vk_caps_utils.h",
"vk_command_buffer_utils.h",
"vk_format_table_autogen.cpp",
"vk_format_utils.cpp",
"vk_format_utils.h",
"vk_helpers.cpp",
"vk_helpers.h",
"vk_internal_shaders_autogen.cpp",
"vk_internal_shaders_autogen.h",
"vk_mandatory_format_support_table_autogen.cpp",
"vk_ref_counted_event.cpp",
"vk_ref_counted_event.h",
"vk_renderer.cpp",
"vk_renderer.h",
"vk_resource.cpp",
"vk_resource.h",
"vk_utils.cpp",
"vk_utils.h",
"vk_wrapper.h",
]
if (angle_enable_cl) {
vulkan_backend_sources += [
"CLCommandQueueVk.cpp",
"CLCommandQueueVk.h",
"CLContextVk.cpp",
"CLContextVk.h",
"CLDeviceVk.cpp",
"CLDeviceVk.h",
"CLEventVk.cpp",
"CLEventVk.h",
"CLKernelVk.cpp",
"CLKernelVk.h",
"CLMemoryVk.cpp",
"CLMemoryVk.h",
"CLPlatformVk.cpp",
"CLPlatformVk.h",
"CLProgramVk.cpp",
"CLProgramVk.h",
"CLSamplerVk.cpp",
"CLSamplerVk.h",
"cl_types.h",
"clspv_utils.cpp",
"clspv_utils.h",
"vk_cl_utils.cpp",
"vk_cl_utils.h",
]
}
if (angle_use_vulkan_null_display) {
vulkan_backend_sources += [
"null/DisplayVkNull.cpp",
"null/DisplayVkNull.h",
]
}
vulkan_backend_dma_buf_sources = [
"linux/DeviceVkLinux.cpp",
"linux/DeviceVkLinux.h",
"linux/DisplayVkLinux.cpp",
"linux/DisplayVkLinux.h",
"linux/DisplayVkOffscreen.cpp",
"linux/DisplayVkOffscreen.h",
"linux/DmaBufImageSiblingVkLinux.cpp",
"linux/DmaBufImageSiblingVkLinux.h",
"linux/display/DisplayVkSimple.cpp",
"linux/display/DisplayVkSimple.h",
"linux/display/WindowSurfaceVkSimple.cpp",
"linux/display/WindowSurfaceVkSimple.h",
"linux/headless/DisplayVkHeadless.cpp",
"linux/headless/DisplayVkHeadless.h",
"linux/headless/WindowSurfaceVkHeadless.cpp",
"linux/headless/WindowSurfaceVkHeadless.h",
]
if (is_linux || is_chromeos) {
vulkan_backend_sources += vulkan_backend_dma_buf_sources
}
if (is_android) {
vulkan_backend_sources += [
"android/AHBFunctions.cpp",
"android/AHBFunctions.h",
"android/DisplayVkAndroid.cpp",
"android/DisplayVkAndroid.h",
"android/HardwareBufferImageSiblingVkAndroid.cpp",
"android/HardwareBufferImageSiblingVkAndroid.h",
"android/WindowSurfaceVkAndroid.cpp",
"android/WindowSurfaceVkAndroid.h",
]
}
if (is_win) {
vulkan_backend_sources += [
"win32/DisplayVkWin32.cpp",
"win32/DisplayVkWin32.h",
"win32/WindowSurfaceVkWin32.cpp",
"win32/WindowSurfaceVkWin32.h",
]
}
if (angle_use_x11) {
vulkan_backend_sources += [
"linux/xcb/DisplayVkXcb.cpp",
"linux/xcb/DisplayVkXcb.h",
"linux/xcb/WindowSurfaceVkXcb.cpp",
"linux/xcb/WindowSurfaceVkXcb.h",
]
}
if (angle_use_wayland) {
vulkan_backend_sources += [
"linux/wayland/DisplayVkWayland.cpp",
"linux/wayland/DisplayVkWayland.h",
"linux/wayland/WindowSurfaceVkWayland.cpp",
"linux/wayland/WindowSurfaceVkWayland.h",
]
}
if (angle_has_build && angle_use_gbm) {
vulkan_backend_sources += [
"linux/gbm/DisplayVkGbm.cpp",
"linux/gbm/DisplayVkGbm.h",
]
}
if (is_fuchsia) {
vulkan_backend_sources += [
"fuchsia/DisplayVkFuchsia.cpp",
"fuchsia/DisplayVkFuchsia.h",
"fuchsia/WindowSurfaceVkFuchsia.cpp",
"fuchsia/WindowSurfaceVkFuchsia.h",
]
}
if (is_mac) {
vulkan_backend_sources += [
"mac/DisplayVkMac.h",
"mac/DisplayVkMac.mm",
"mac/IOSurfaceSurfaceVkMac.h",
"mac/IOSurfaceSurfaceVkMac.mm",
"mac/WindowSurfaceVkMac.h",
"mac/WindowSurfaceVkMac.mm",
]
}