summaryrefslogtreecommitdiff
path: root/vulkan/include
AgeCommit message (Collapse)Author
2023-12-15vulkan: fix compile error with latest AHB changes Gurchetan Singh
Otherwise, the following error is observed: frameworks/native/vulkan/include/vulkan/vk_android_native_buffer.h:128:5: error: must use 'struct' tag to refer to type 'AHardwareBuffer' BUG=313466265 TEST=presubmit Change-Id: I1d32208a26161a64cba057a9fb4a47ce28b83d5b
2023-12-12Add AHardwareBuffer* to VkNativeBufferANDROID Trevor David Black
Bug: 275906506 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.*' Change-Id: I9c7d28fe3498f77001d8b6512462fa7787305abf
2023-10-04Deprecate GetSwapchainGrallocUsageANDROID from the platform Trevor David Black
Bug: 259437988 Change-Id: I9ae19978c7ea5f73292343fb187395ed5dbde270
2023-08-03Add swapchainImageUsage to VkGrallocUsageInfo2 Trevor David Black
Bug: 288286529 Test: Build Change-Id: I8091d9c4db11394b85ceb1d266f97d35a00cc246
2022-11-16Vulkan loader changes to support VK_EXT_image_compression_control Trevor David Black
Bug: 218365766 Test: Build Change-Id: I91cddbee0daac27d838e6201ba63c51a5158412c
2020-08-03Merge "Vulkan: unload builtin driver to reload updated driver if needed" TreeHugger Robot
2020-08-03Vulkan: unload builtin driver to reload updated driver if needed Yiwei Zhang
Android historically preloads GL driver in Zygote to speed up app launch time and avoid the duplicate extra memory for each process loading the graphics driver. In Android 10, we landed GL driver unloading mechanism to ship updatable driver and ANGLE without perf overhead on the rest of the system. To get prepared for the HWUI Vulkan backend being turned on as the default renderer for UI componments, this CL will do the same to the Vulkan driver to preload it in Zygote and unload so to reload updated driver if needed. Bug: 135536511 Test: atest CtsUiRenderingTestCases no regression on VK backend Change-Id: I2909f6ecc4f011b1f3670aacdf817ed3b6e9a487
2020-07-20Refactor VK_ANDROID_native_buffer header Yiwei Zhang
Test: build Change-Id: I81b4d6f87b4349ea8326e9437f6b3f1aca44bde8
2019-07-18Move the nested struct inside VkNativeBufferANDROID outside. Adithya Srinivasan
The nested struct of VkNativeBufferANDROID in vk_android_native_buffer.h needs to be moved outside to properly update the vulkan registry as there is no way of specifying nested structs in the registry yet. Bug: 136570819 Test: Build and flash, dEQP tests Change-Id: I8b0db3f0729215f29ba82b6352010c7dd7f47f4e
2019-04-17Merge changes from topic "move-vulkan-headers" am: 22a3ef220a Jesse Hall
am: 9c82f661a4 Change-Id: I0912acb71fc672f1574d9bc920be0209dbbdc579
2019-04-17libvulkan: Rev 8 of ANDROID_native_buffer Yiwei Zhang
This change ramps up the ANDROID_native_buffer spec version becasue of the new behavior introduced to support the new structure added in VK_KHR_swapchain v69. This change also advertise the swapchain spec verison based upon the ANDROID_native_buffer version the drivers are reporting. Bug: 130182551 Test: CtsDeqpTestCases Change-Id: Ic95489dac883726d10e1a949875a576116622f3c
2019-04-15Use upstream Vulkan headers from external/vulkan-headers Jesse Hall
vk_android_native_buffer.h and vk_layer_interface.h remain, since they're Android-internal additions and not provided by the upstream API header repository. Bug: 129696724 Test: make checkbuild Change-Id: If4677d08a6891b18ce347e3fa3be393fc6111fc8
2018-12-20vulkan: Update Vulkan headers to 1.1.96 Jesse Hall
Key changes since 1.1.95: * Corrected definition of VkPhysicalDevicePCIBusInfoPropertiesEXT This is a rare ABI-breaking change. The Vulkan Working Group decided to do it this way -- rather than deprecate the extension and create a new one with the correct definition -- because no GPU vendor had made an official driver release that supported the extension yet (it was present in some open-source drivers, but hadn't been included in one of their regular numbered/official releases). Test: build Change-Id: I085cf6ec17d8d6146299663689cf3b20fa4200e8
2018-12-17vulkan: Update Vulkan headers to 1.1.95 Jesse Hall
Key changes since 1.1.94: * Added VK_KHR_shader_float16_int8 * Added VK_KHR_shader_float_controls Test: build Change-Id: I28b865b45ead481877eb28b08231120dc582904c
2018-12-17vulkan: Update Vulkan headers to 1.1.94 Jesse Hall
Key changes since 1.1.93: * Added VK_KHR_swapchain_mutable_format * Added VK_EXT_fragment_density_map Test: build Change-Id: I05695737f85d0e18cde5681906cc22e8dfa8877f Merged-In: I05695737f85d0e18cde5681906cc22e8dfa8877f
2018-11-19vulkan: Update Vulkan headers to 1.1.93 Jesse Hall
Key changes since 1.1.91: * Added VK_EXT_scalar_block_layout * Added VK_EXT_separate_stencil_usage Test: build Change-Id: I79d077623486789d5a578d10cd23d1b6c59a5941
2018-11-05vulkan: Update headers to 1.1.91 Jesse Hall
Key changes since 1.1.90: * Updated VK_NVX_raytracing -> VK_NV_raytracing * Added VK_AMD_memory_overallocation_behavior Test: build Change-Id: I24ad0ea9b7b93a7f9768092c71ee4e5bd90a6a83
2018-10-29vulkan: Update headers to 1.1.90 Jesse Hall
Key changes since 1.1.87: * Added VK_KHR_vulkan_memory_model * Added VK_EXT_transform_feedback * Added VK_EXT_image_drm_format_modifier * Added VK_EXT_calibrated_timestamps * Added VK_EXT_pci_bus_info Test: build Change-Id: I66c41101ca97ca5e5a7bc0e2855fa07d0aab430d
2018-10-27vulkan: Update headers to 1.1.87 Jesse Hall
Key changes since 1.1.86: * Added VK_FUCSHIA_imagepipe_surface Test: build Change-Id: I9e9967ee9ec1057ac89258f515d076dd91d13e55
2018-10-02vulkan: Update headers to 1.1.86 Jesse Hall
Key changes since 1.1.85: * Added VK_KHR_shader_atomic_int64 * Added VK_KHR_driver_properties Test: build Change-Id: I94595b642be6daf8325b20763fe20c0115f6d47e
2018-09-23vulkan: Update headers to 1.1.85 Jesse Hall
Key changes since 1.1.84: * Added VK_NV_corner_sampled_image * Added VK_NV_shading_rate_image * Added VK_NVX_raytracing * Added VK_NV_representative_fragment_test * Added VK_NV_compute_shader_derivatives * Added VK_NV_mesh_shader * Added VK_NV_fragment_shader_barycentric * Added VK_NV_shader_image_footprint * Added VK_NV_scissor_exclusive Test: build Change-Id: Id580bc2ec72b3f4720eee31bb644afc145e83c99
2018-09-10vulkan: Update headers to 1.1.84 Jesse Hall
Key changes since 1.1.82: * Added VK_KHR_vulkan_memory_model * Added VK_EXT_astc_decode_mode * Added VK_EXT_inline_uniform_block * Non-trivial changes to VK_EXT_vertex_attribute_divisor (v2) Test: build Change-Id: I6a1b4d4818c3e3e51a2a89d62738ff80075dd509
2018-07-30Merge "vulkan: Update headers to 1.1.82" Jesse Hall
am: 996b241dbd Change-Id: Id74b1e35243d36733f1b7efb1571dafcbdf3e0ac
2018-07-30vulkan: Update headers to 1.1.82 Jesse Hall
Key changes since 1.1.80: * Added VK_NV_device_diagnostic_checkpoints Test: build
2018-07-09Merge "vulkan: Update headers to 1.1.80" Jesse Hall
am: 536755917d Change-Id: I983c1018763f9257e74142c3d2f3d08704f0ba22
2018-07-09vulkan: Update headers to 1.1.80 Jesse Hall
Key changes since 1.1.76: * Added VK_KHR_create_renderpass2 * Added VK_KHR_8bit_storage * Added VK_EXT_conditional_rendering * Added VkVendorId enum Test: build Change-Id: I8ad7d26189d7997c76269533c0f195d8ada07f6a
2018-05-28Merge "vulkan: Update headers to 1.1.76" am: 381ee9c800 Jesse Hall
am: 1db52092b3 Change-Id: I02e614773b5c7d8c373c62476b9afb4362c8a037
2018-05-28vulkan: Update headers to 1.1.76 Jesse Hall
Key changes since 1.1.72: * Added VK_KHR_draw_indirect_count * Added VK_KHR_display_properties2 Test: build Change-Id: I658cb86096d2fecc3b24f6e1b2febb6ce88bdf5b
2018-04-09Merge "vulkan: update Vulkan headers to 1.1.72" am: df68da1c4b Jesse Hall
am: 383e778727 Change-Id: I045974d9efa5ab5ca4b1e2e87b8dfe09558b98ac
2018-04-06vulkan: update Vulkan headers to 1.1.72 Jesse Hall
Key changes from 1.1.68: * Added VK_EXT_descriptor_indexing * Added VK_EXT_vertex_attribute_divisor * Added VK_AMD_buffer_marker * Added VK_AMD_shader_core_properties * Added VK_NV_shader_subgroup_partitioned Test: run libvulkan and nulldrv codegen; no differences in generated code, as expected Test: build system image Change-Id: Ic204e40bef6cabb1047e5ac38347424c3955c385
2018-04-04vulkan: Declare VK_ANDROID_external_memory_android_hardware_buffer Jesse Hall
Test: build Change-Id: I02d4790f7a4d5ccb0c6e5b43fab92e89ce8322db
2018-04-04vulkan: update Vulkan headers to 1.1.68 Jesse Hall
Key changes from 1.1.61: * Introduced split headers: * vulkan_core.h provides all declarations that don't depend on platform-specific headers * vulkan_android.h provides Android-specific declarations * vulkan.h is retained for source compatibility, and includes both of the above; vulkan_android.h is conditional on VK_USE_PLATFORM_ANDROID_KHR * Re-defined symbols for extensions that were merged into Vk1.1 as typedefs/aliases for the new core symbols. * New extensions: * VK_EXT_conservative_rasterization * VK_EXT_debug_utils * VK_EXT_external_memory_dma_buf * VK_EXT_external_memory_host * VK_EXT_global_priority * VK_EXT_queue_family_foreign * VK_AMD_shader_image_load_store_lod * VK_AMD_shader_info Test: build Change-Id: I84cdb4c24eed27ead99047951f795ccafa0bfc9a
2018-04-04Vulkan api update to 1.1 Daniel Koch
Import Vulkan 1.1 header from khronos master@5b2d66c0e6906388385ed7adfd015d80ec0d846a with the following modifications: - VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES 10006300 -> 1000063000 - remove VK_KHR_get_display_properties2 (which is not ratified) - device_group interactions from KHR_surface to KHR_swapchain (per MR 2409) Summary of changes since 1.0.61: * VK_KHR_surface -> v26 (subsumed interactions with VK_KHR_device_group) * VK_KHR_swapchain -> v69 (subsumed interactions with VK_KHR_device_group) * VK_EXT_debug_report -> v9 (no api changes) * VK_KHX_multiview -> VK_KHR_multiview * VK_KHX_device_group -> VK_KHR_device_group * VK_KHX_device_group_creation -> VK_KHR_device_group_creation * VK_KHR_push_descriptor -> v2 * Added VK_KHR_maintenance3 * Added 1.1 core enums, structs, and functions (kept KHR suffixed ones too) Implemented the following in libvulkan: * EnumerateInstanceVersion * GetDeviceGroupPresentCapabilitiesKHR (minimal support for 1 device) * GetDeviceGroupSurfacePresentModesKHR (minimal support for local present modes only) * GetPhysicalDevicePresentRectanglesKHR (assumes whole window) * AcquireNextImage2KHR (minimal thunk to AcquireNextImageKHR) * GetDeviceQueue2 * added support for VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR * support for 1.1 core device_groups functionality (no VK_KHR_device_group_creation) - EnumeratePhysicalDeviceGroups * added trampolines for 1.1 core entry points * disabled apiVersion >= 1.1 check Implemented in nulldrv (but largely untested beyond build/link) * EnumerateInstanceVersion * enough empty thunks for VK 1.1 core functions that it links Test: Build Android Change-Id: I247cd670543867bdf80877156d941cf3bfcf6303
2018-01-20vulkan: Declare VK_ANDROID_external_memory_android_hardware_buffer Jesse Hall
Test: build Change-Id: I02d4790f7a4d5ccb0c6e5b43fab92e89ce8322db
2018-01-20vulkan: update Vulkan headers to 1.1.68 Jesse Hall
Key changes from 1.1.61: * Introduced split headers: * vulkan_core.h provides all declarations that don't depend on platform-specific headers * vulkan_android.h provides Android-specific declarations * vulkan.h is retained for source compatibility, and includes both of the above; vulkan_android.h is conditional on VK_USE_PLATFORM_ANDROID_KHR * Re-defined symbols for extensions that were merged into Vk1.1 as typedefs/aliases for the new core symbols. * New extensions: * VK_EXT_conservative_rasterization * VK_EXT_debug_utils * VK_EXT_external_memory_dma_buf * VK_EXT_external_memory_host * VK_EXT_global_priority * VK_EXT_queue_family_foreign * VK_AMD_shader_image_load_store_lod * VK_AMD_shader_info Test: build Change-Id: I84cdb4c24eed27ead99047951f795ccafa0bfc9a
2017-11-15Rootless GPU Debug Cody Northrop
Add the ability to load GPU debug layers from the base directory of debuggable applications. This update concides with changes to framework/base to control the enabling logic in GraphicsEnvironment. This commit changes the Vulkan loader to: * Scan an additional location for debug layers. * Use the provided order of layers from GraphicsEnvironment, overriding system properties. * Use the first instance of a layer found, in the case of duplicates. * Move layers paths and namespace to GraphicsEnv, removing vulkan_loader_data Bug: 63708377 Test: Manual, CTS tests to follow Change-Id: I38dc91bbc26671f5093ee1b12454fc024c0b5892
2017-10-26Vulkan api update to 1.1 Daniel Koch
Import Vulkan 1.1 header from khronos master@5b2d66c0e6906388385ed7adfd015d80ec0d846a with the following modifications: - VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES 10006300 -> 1000063000 - remove VK_KHR_get_display_properties2 (which is not ratified) - device_group interactions from KHR_surface to KHR_swapchain (per MR 2409) Summary of changes since 1.0.61: * VK_KHR_surface -> v26 (subsumed interactions with VK_KHR_device_group) * VK_KHR_swapchain -> v69 (subsumed interactions with VK_KHR_device_group) * VK_EXT_debug_report -> v9 (no api changes) * VK_KHX_multiview -> VK_KHR_multiview * VK_KHX_device_group -> VK_KHR_device_group * VK_KHX_device_group_creation -> VK_KHR_device_group_creation * VK_KHR_push_descriptor -> v2 * Added VK_KHR_maintenance3 * Added 1.1 core enums, structs, and functions (kept KHR suffixed ones too) Implemented the following in libvulkan: * EnumerateInstanceVersion * GetDeviceGroupPresentCapabilitiesKHR (minimal support for 1 device) * GetDeviceGroupSurfacePresentModesKHR (minimal support for local present modes only) * GetPhysicalDevicePresentRectanglesKHR (assumes whole window) * AcquireNextImage2KHR (minimal thunk to AcquireNextImageKHR) * GetDeviceQueue2 * added support for VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR * support for 1.1 core device_groups functionality (no VK_KHR_device_group_creation) - EnumeratePhysicalDeviceGroups * added trampolines for 1.1 core entry points * disabled apiVersion >= 1.1 check Implemented in nulldrv (but largely untested beyond build/link) * EnumerateInstanceVersion * enough empty thunks for VK 1.1 core functions that it links Test: Build Android Change-Id: I247cd670543867bdf80877156d941cf3bfcf6303
2017-09-30Merge changes I91c0080e,Ibfbf84a5 Jesse Hall
am: f9c4e2cc7c Change-Id: Id9be30ea5b7a19b5c0ddf0cabeaa4ae16ea99ee5
2017-09-29vulkan: Update Vulkan headers to 1.0.61 Jesse Hall
Summary of changes since 1.0.60: * Added VK_KHR_maintenance2 * Added VK_KHR_image_format_list * Added VK_KHR_sampler_ycbcr_conversion * Added VK_KHR_bind_memory2 Test: build Change-Id: I91c0080e48fd6935435d338669813fccbe48fc40
2017-09-21vulkan: Update Vulkan headers to 1.0.60 Jesse Hall
Summary of changes since 1.0.54: * Added VK_KHR_relaxed_block_layout * Added VK_EXT_post_depth_coverage * Added VK_EXT_shader_viewport_index_layer * Added VK_EXT_sample_locations * Added VK_EXT_validation_cache * Added VK_EXT_shader_stencil_export * Added VK_AMD_mixed_attachment_samples * Added VK_AMD_shader_fragment_mask * VK_EXT_swapchain_colorspace added new enum VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT * Added const to some VK_EXT_debug_report function parameters Test: build Change-Id: Ibfbf84a50ab927e6e37cd4044d00b7375cd005e4
2017-08-28Merge "vulkan: Update Vulkan headers to 1.0.54" Jesse Hall
am: 0ddcc46845 Change-Id: Iab692e9f17e830d115e1b9444dde21b6294be90e
2017-08-28vulkan: Update Vulkan headers to 1.0.54 Jesse Hall
Key changes since 1.0.53: * Updated several KHX extensions and promoted to KHR: * VK_KHR_external_memory_capabilities * VK_KHR_external_memory_win32 * VK_KHR_external_memory_fd * VK_KHR_external_semaphore_capabilities * VK_KHR_external_semaphore * VK_KHR_external_semaphore_win32 * VK_KHR_external_semaphore_fd * VK_KHR_win32_keyed_mutex * Added new extensions: * VK_KHR_external_fence_capabilities * VK_KHR_external_fence * VK_KHR_external_fence_win32 * VK_KHR_external_fence_fd * VK_KHR_storage_buffer_storage_class * VK_KHR_variable_pointers * VK_KHR_dedicated_allocation * VK_KHR_get_memory_requirements2 Test: build Change-Id: I790143b0d5160c02a016f1e67720edbf6bc45636
2017-08-02Merge changes If4271719,I9c9b5de9,I46a26a67 into oc-dr1-dev Courtney Goeltzenleuchter
am: ddd9c71272 Change-Id: I842bfeea8bea812f2ff2adb87387fc129bcb68c3
2017-08-01Add VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT. Courtney Goeltzenleuchter
Bug: 63077212 Test: CTS basicExtensionTest Change-Id: I9c9b5de99249a6fdd49df1995971c14915f6a7c8 (cherry picked from commit edc88e78a30ca412a0a085a21f1fc1be7be5081f)
2017-07-10Merge "vulkan: update Vulkan headers to 1.0.53" am: 38bcc110b8 am: d0b439e33a Jesse Hall
am: 06ac13f0e5 Change-Id: Ie5587cd9ad0dee432ae3e50eff347a4d7d8602cd
2017-07-10Merge "vulkan: update Vulkan headers to 1.0.53" Jesse Hall
am: 38bcc110b8 Change-Id: I986ac1445697fb93fd72ab196087145a6b9945a0
2017-07-08vulkan: update Vulkan headers to 1.0.53 Jesse Hall
Key changes since 1.0.49: * Rename some extension enumerants to conform to naming style * Add VK_EXT_sampler_filter_minmax * Add VK_EXT_blend_operation_advanced * Add VK_AMD_texture_gather_bias_lod * Add VK_AMD_gpu_shader_int16 * Add VK_NV_fragment_coverage_to_color * Add VK_NV_framebuffer_mixed_samples * Add VK_NV_fill_rectangle Test: build Change-Id: I6b7931f4b7dfe4cae4fbc85fa961249534ccc11e
2017-05-19Merge "vulkan: update Vulkan headers to 1.0.49" into oc-dev-plus-aosp Jesse Hall
am: 6e21ebfd17 Change-Id: I041852defd1a61b990fce326adc7de8c34892119
2017-05-18vulkan: update Vulkan headers to 1.0.49 Jesse Hall
Key changes since 1.0.46: * Add VK_KHR_get_surface_capabilities2 * Add VK_KHR_shared_presentable_image * Add VkObjectType enumeration to core API The extensions had already been added manually in our internal tree, so this just moves the existing declarations to the same place as in the public header and fixes one small difference. Test: dEQP-VK.wsi.android.surface.query_capabilities2 dEQP-VK.wsi.android.shared_presentable_image.* Change-Id: I1e4bd5d19f36af0d4e878b3971145a1ae1281dd6
2017-05-18vulkan: update Vulkan headers to 1.0.49 Jesse Hall
Key changes since 1.0.46: * Add VK_KHR_get_surface_capabilities2 * Add VK_KHR_shared_presentable_image * Add VkObjectType enumeration to core API The new commands added by VK_KHR_get_surface_capabilities2 are commented out in vulkan.api since the current libvulkan template doesn't handle them properly. They'll be uncommented along with the corresponding template changes and implementation. Test: mmm frameworks/native/vulkan Merged-In: I1e4bd5d19f36af0d4e878b3971145a1ae1281dd6 Change-Id: I7aa110aa82735db4a82b631a60f875b5f1c96784