summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan
Commit message (Collapse)AuthorAgeFilesLines
* Add more supported vulkan color spaceYuxin Hu2024-02-091-40/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change lists the vulkan color space that is said to be supported by VK_EXT_swapchain_colorspace extension, and enable them on the VkFormat that is supported by AHardwareBuffer. VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT and VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT are enabled on VK_FORMAT_R16G16B16A16_SFLOAT VkFormat surfaces only as the transfer function is only meaningful for FP16 pixel formats. VK_COLOR_SPACE_PASS_THROUGH_EXT is the only VK_EXT_swapchain_colorspace color space that is enabled on VK_FORMAT_R8_UNORM VkFormat. Color space doesn't apply to single-channel pixel format, and we should use pass through to keep the original pixel color value. VK_COLOR_SPACE_DOLBYVISION_EXT is not supported on Android platform, and it is excluded from the VK_EXT_swapchain_colorspace supported color space lists. Bug: b/322044839 Test: atest --verbose CtsViewTestCases:android.view.cts.TextureViewTest Change-Id: I6ee3cbf9c6c61fc353ec9f3e515884645382c665
* Add VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT to FP16 surfaceYuxin Hu2024-02-081-0/+4
| | | | | | | | | | | | | | | | | VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT is not enabled on any VkFormat. This means ANGLE on Vulkan is not exposing EGL_EXT_gl_colorspace_display_p3_linear EGL colorspace, because ANGLE's query of VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT vulkan color space returns nothing. This causes TextureViewTest that relies on EGL_EXT_gl_colorspace_display_p3_linear color space support to fail on ANGLE. To fix it, enable the VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT color space on VK_FORMAT_R16G16B16A16_SFLOAT VkFormat first. Test: atest --verbose CtsViewTestCases:android.view.cts.TextureViewTest Bug: b/322044839 Change-Id: I95b6b425aef4b7870797e406dce59f596f1f50c3
* Add VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT to FP16 surfaceYuxin Hu2024-02-061-0/+3
| | | | | | Test: atest --verbose CtsViewTestCases:android.view.cts.TextureViewTest#testGetBitmap_FP16_PassthroughP3 Bug: b/322044839 Change-Id: Ic1dfec7ea8d128881077a3c00f7454230f15f3a3
* Check for USAGE_FRONT_BUFFER after GPDIFP2Trevor David Black2024-01-171-163/+187
| | | | | | Bug: 288286529 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.*' Change-Id: I2ee886b18b194016e638f44907aa8e2fdcb8fe6e
* Vulkan: Don't close HAL inside of an assertIan Elliott2024-01-091-2/+3
| | | | | | Bug: 282237072 Test: Compile with asserts disabled Change-Id: Ideed507af4f6422db32f85c5ef70d8c62d21d5c9
* bound the swapchain num_image by the min and max image countTrevor David Black2023-12-261-6/+29
| | | | | | | | Bug: 313353712 Bug: 316517849 Bug: 296019634 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.*' Change-Id: I0726b39aacaba87a531af9bef23c8a214bc38425
* Add AHardwareBuffer* to VkNativeBufferANDROIDTrevor David Black2023-12-121-0/+12
| | | | | | Bug: 275906506 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.*' Change-Id: I9c7d28fe3498f77001d8b6512462fa7787305abf
* Merge "Pass in VkImageCompressionControlEXT for swapchain usage query" into mainVamsidhar reddy Gaddam2023-11-171-1/+24
|\
| * Pass in VkImageCompressionControlEXT for swapchain usage queryVamsidhar reddy Gaddam2023-11-141-1/+24
| | | | | | | | | | | | | | | | | | When using vkGetPhysicalDeviceImageFormatProperties2KHR to query usage flags, pass the application provided VkImageCompressionControlEXT struct to get the correct usage flags. Bug: 307696078 Change-Id: Idcad0589a1e05bd8e7574fbb1bdd1346aad325f9
* | Merge "Load vulkan driver from an apex when ro.vulkan.apex is set" into main ↵Jooyung Han2023-11-162-6/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | am: a4f2d92c23 am: 1a18312ba9 am: 3093fae8e8 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2818498 Change-Id: I61f92db0772295c0355e3ece91d8964b356aa1ae Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * \ Merge "Load vulkan driver from an apex when ro.vulkan.apex is set" into main ↵Jooyung Han2023-11-162-6/+30
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a4f2d92c23 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2818498 Change-Id: I84f10f2dcbdbdbac513e6c387cb9160dc96a4eca Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Load vulkan driver from an apex when ro.vulkan.apex is setJooyung Han2023-11-152-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When ro.vulkan.apex is set, loader tries to load driver from the apex. This enables vulkan driver to be packaged in APEX. Bug: 205618237 Bug: 306294280 Test: cvd start -gpu_mode=guest_swiftshader # load vulkan.pastel from apex. Change-Id: I63feb6d55fb9918b95d3cff0d9ffa0d004e94645
* | | | Merge "Vulkan: log dlerror on error" into main am: 67d71c0552 am: 02ba47d307 ↵Jooyung Han2023-11-131-2/+6
|\| | | | |_|/ |/| | | | | | | | | | | | | | | | | | | | am: 84e6863205 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2825857 Change-Id: I341887a0ee410693bf7f6e0d02b2a5b8e91a14b8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | Merge "Vulkan: log dlerror on error" into main am: 67d71c0552Jooyung Han2023-11-131-2/+6
| |\| | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2825857 Change-Id: Id94e4d8297d5fb778b2b537ce90988dabbd77fc8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Vulkan: log dlerror on errorJooyung Han2023-11-131-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, it prints dlerror even when it succeeds, which leads to a misleading log entry. Bug: n/a Test: cvd start -gpu_mode=guest_swiftshader Change-Id: I6eaf9df6b3fc5c848c999847d712391e6d8b1633
| | * Merge Android U (ab/10368041)Xin Li2023-08-255-370/+842
| | |\ | | | | | | | | | | | | | | | | | | | | Bug: 291102124 Merged-In: I9b175092d433fc6d7b22b437a09d76d3d2e0ce14 Change-Id: If8a2897a99b111ba107f33c19537d40bcbdc802e
| * | \ Merge "Fix bt2020 linear ext mapping issue in EGL and Vulkan." into main am: ↵Sally Qi2023-08-221-6/+12
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d6bfad2e5c am: 1ce442f909 am: b7ed28c921 am: 29ce9507f7 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2719664 Change-Id: Id28551fb8218e01bb2024daba1e9c8ab1cd3aa7a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | | Merge "Fix bt2020 linear ext mapping issue in EGL and Vulkan." into main am: ↵Sally Qi2023-08-221-6/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d6bfad2e5c am: 1ce442f909 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2719664 Change-Id: Ife0f4fb96e18a72a4884a1422931347aa017baad Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | Fix bt2020 linear ext mapping issue in EGL and Vulkan.Sally Qi2023-08-211-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - EGL_EXT_BT2020_LINEAR should be mapped to extend bt2020 linear if output format is FP16. Bug: 261485283 Test: builds Change-Id: Ifd68cc10afc0b5b38b15af2a938d02bb3bcd3764 Merged-In: Ifd68cc10afc0b5b38b15af2a938d02bb3bcd3764
| | * | | [conflict] Merge "Vulkan: Avoid buffer overflow by ignoring duplicate ↵Treehugger Robot2023-08-141-0/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extensions" into main am: 64b1cfe27c am: e36d57bc65 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2702989 Change-Id: I6403163b14d62b50232d1197ecb2b14e946efe13 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | Vulkan: Avoid buffer overflow by ignoring duplicate extensionsIan Elliott2023-08-101-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For any instance extension that a Vulkan driver supports, if a VkInstance is created with that extension listed multiple times, the 2nd-nth times should be ignored. That avoids overwriting an array in CreateInfoWrapper::FilterExtension(). Test: Manual testing with logcat Bug: 288929054 Change-Id: I096a6752e0f4abef868efdb6f8b4bcbd0c0c79cd
* | | | | Merge changes from topic "bump android.hardware.graphics.common to V5" into mainSergiu Ferentz2023-10-091-33/+26
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Refactoring HAL Dataspace to AIDL Dataspace Bump android.hardware.graphics.common V4->V5
| * | | | | Refactoring HAL Dataspace to AIDL Dataspacesergiuferentz2023-10-031-33/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 291142745 Test: Build Change-Id: Icfa9562f03d58c4cb8d90151c3c5a4617c404375
* | | | | | Merge "Deprecate GetSwapchainGrallocUsageANDROID from the platform" into mainTrevor Black2023-10-043-106/+220
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Deprecate GetSwapchainGrallocUsageANDROID from the platformTrevor David Black2023-10-043-106/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 259437988 Change-Id: I9ae19978c7ea5f73292343fb187395ed5dbde270
* | | | | | Merge "Fix loading VVLs by surfaceflinger service" into mainAlina Kalyakina2023-10-021-8/+24
|\ \ \ \ \ \
| * | | | | | Fix loading VVLs by surfaceflinger serviceAlina Kalyakina2023-09-211-8/+24
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use dlclose instead of android::CloseNativeLibrary if there's no need to use nativeloader function. The service failed to load VVLs because libnativeloader.so that has android::CloseNativeLibrary was inaccessible. Bug: 300877075 Change-Id: I8fcacbc5b550d8ea723201a407db003caa5f4cff
* / / / / / Clarified value of 2 for default buffers in vulkan swapchainTrevor David Black2023-09-261-3/+9
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 296019634 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.*' Change-Id: Ie690fdb87c42d1000550d3f92fb7d0527cba3ca9
* | | | | remove min_undequeued_buffers from VkCreateSwapchainKHRTrevor David Black2023-09-071-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | min_undequeued_buffers is already added in GetPhysicalDeviceSurfaceCapabilities2KHR Meaning that it was getting counted a second time in VkCreateSwapchainKHR Bug: 296019634 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.*' Change-Id: I298b0f6dfe257ff94d8831e9ac9832c830bfc4b8
* | | | | Move swapchain GetPhysicalDeviceSurfaceCapabilities2KHR to switch-caseTrevor David Black2023-08-301-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 296019634 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.*' Change-Id: I0e814068290c543ef3046a57d30d4ee070aa9d33
* | | | | Merge "Vulkan: Avoid buffer overflow by ignoring duplicate extensions" into ↵Treehugger Robot2023-08-141-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | udc-qpr-dev am: 1700661aa2 am: ad3bdaf790 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24392472 Change-Id: I3241c49cc7a71c9981a9cfd5e8b25c88bc63818e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | Merge "Vulkan: Avoid buffer overflow by ignoring duplicate extensions" into ↵Treehugger Robot2023-08-141-0/+11
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | udc-qpr-dev am: 1700661aa2 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24392472 Change-Id: I6c1841e31896563e636a98f4435a1925c7d64b0c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * \ \ \ Merge "Vulkan: Avoid buffer overflow by ignoring duplicate extensions" into ↵Treehugger Robot2023-08-141-0/+11
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | udc-qpr-dev
| | | * | | | Vulkan: Avoid buffer overflow by ignoring duplicate extensionsIan Elliott2023-08-111-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For any instance extension that a Vulkan driver supports, if a VkInstance is created with that extension listed multiple times, the 2nd-nth times should be ignored. That avoids overwriting an array in CreateInfoWrapper::FilterExtension(). Test: Manual testing with logcat Bug: 288929054 Change-Id: I096a6752e0f4abef868efdb6f8b4bcbd0c0c79cd Merged-In: I096a6752e0f4abef868efdb6f8b4bcbd0c0c79cd
* | | | | | | Merge "libvulkan: Remove use of hardcoded PAGE_SIZE 4096" into main am: ↵Juan Yescas2023-08-101-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8433f63b92 am: c9a2145f5c am: 4d7fbe86fe am: 4a333f32e9 am: f3503e6587 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2701953 Change-Id: I4ed0469652e1975947ecfa3c7ee3381c78f8995a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | Merge "libvulkan: Remove use of hardcoded PAGE_SIZE 4096" into main am: ↵Juan Yescas2023-08-101-1/+3
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8433f63b92 am: c9a2145f5c am: 4d7fbe86fe am: 4a333f32e9 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2701953 Change-Id: I80ab72047da73021f1e403fc2f2493bf6241ac09 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | | | | Merge "libvulkan: Remove use of hardcoded PAGE_SIZE 4096" into main am: ↵Juan Yescas2023-08-101-1/+3
| | |\ \ \ \ \ | | | | |_|/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8433f63b92 am: c9a2145f5c Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2701953 Change-Id: I78c3215f3ca32af3d787a51cbf6a86bd500dac84 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | | | libvulkan: Remove use of hardcoded PAGE_SIZE 4096Kalesh Singh2023-08-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bionic hard codes the PAGE_SIZE macro as 4096. This is going away as Android begins to support larger page sizes. Remove the usage of this assumption from libvulkan source; use instead getpagesize() which provides the real pagesize. Test: mma Bug: 295227858 Change-Id: Ie7c2c2f47d8c61c7495dbd3d88bb63ccf7a74063 Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
* | | | | | | Merge "Add swapchainImageUsage to VkGrallocUsageInfo2" into udc-qpr-dev am: ↵Trevor Black2023-08-054-3/+54
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 92edf5398b am: 3cee757220 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24314871 Change-Id: Iac4ddf3161d414da318d47bd626efaa76140bd23 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | | | Merge "Add swapchainImageUsage to VkGrallocUsageInfo2" into udc-qpr-dev am: ↵Trevor Black2023-08-044-3/+54
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 92edf5398b Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24314871 Change-Id: I9d2741c1448e31d11a518083bf6033dd963d7d20 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | | | | Add swapchainImageUsage to VkGrallocUsageInfo2Trevor David Black2023-08-034-3/+54
| | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 288286529 Test: Build Change-Id: I8091d9c4db11394b85ceb1d266f97d35a00cc246
* | / | | | Fix bt2020 linear ext mapping issue in EGL and Vulkan.Sally Qi2023-07-191-6/+12
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - EGL_EXT_BT2020_LINEAR should be mapped to extend bt2020 linear if output format is FP16. Bug: 261485283 Test: builds Change-Id: Ifd68cc10afc0b5b38b15af2a938d02bb3bcd3764
* | | | | Merge "Move vulkan swapchain from pixelformat to aidl" into main am: ↵Trevor Black2023-07-181-13/+14
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | | | | | | | | | 39a9427c02 am: a442c73691 am: 92b2ae9ed2 am: 9453eecc42 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2656945 Change-Id: Id5ac4dfacfc3faddc928cd2f0e8223dc9701ce4d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | / Merge "Move vulkan swapchain from pixelformat to aidl" into main am: ↵Trevor Black2023-07-181-13/+14
| |\| | | | |/ | |/| | | | | | | | | | | | | | | | | | | 39a9427c02 am: a442c73691 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2656945 Change-Id: I471b9548f3cbe3926b061b6a06d556cd77f7ea84 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Move vulkan swapchain from pixelformat to aidlTrevor David Black2023-07-171-13/+14
| | | | | | | | | | | | | | | | | | Bug: 291142745 Test: Build Change-Id: I3abe992f7d7cd2a79704a3189958e51b3c2f0bdb
* | | Fix the bug in image compression that failed to specify correct usage, type, ↵Trevor David Black2023-06-261-0/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | flags The previous implementation of the vulkan swapchain incorrectly implemented vkGetPhysicalDeviceSurfaceFormats2KHR. As a workaround at least one driver vendor resorted to a code workaround in their driver to correct the bad call in flight. The failure was during a call to vkGetDeviceImageFormatProperties2 where the swapchain was failing to include the correct image usage and image type, along with a failure to include the correct image compression flags. This CL amends the mistake to add these missing components to the vulkan vkGetDeviceImageFormatProperties2 call. Any driver vendors that have not yet finalized their image compression implementations will benefit from not needing to add an android specific workaround for this bug. The CL as written does not require the driver workaround that was already written to be revised. The driver will work correctly without source changes. When the driver is updated the workaround can cleanly be removed without side-effects. Bug: 288100893 Test: dEQP-VK.api.image_compression_control.swapchain.android Change-Id: Id10e5f3e42ae4e16b2cf4874a0ff4e0e2f21cd2d
* | Correctly implement minImageCount for swapchainTrevor David Black2023-06-081-5/+13
| | | | | | | | | | | | Bug: 284807752 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.android.maintenance1.release_images.*' Change-Id: I36bd7a3dac8f8a3f6b913733fbd0ba140ee0b092
* | swapchain: avoid redundant disconnect/connect for new surfaceYiwei Zhang2023-04-191-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Platform API contract ensures VkSurfaceKHR is created with a new or disconnected ANativeWindow. Then the first swapchain created against the new surface can skip the disconnect/connect of the native window, which saves 2 binder IPC calls. In theory, the same can be skipped until the first successful present call. We dirty the bit at the end of swapchain creation to avoid extra external synchronization. Bug: 275176234 Bug: 265763295 Test: no deadlock against ANGLE eglCreateWindowSurface Change-Id: Ic2d09e4547e0ec7e910863c77a4657d52e9366fd
* | Processing native_window_get_refresh_cycle_duration errorAlina Kalyakina2023-04-141-14/+23
| | | | | | | | | | | | | | | | | | | | Added processing the situation when native_window_get_refresh_cycle_duration returns error in CreateSwapchainKHR. Bug: 271795577 Test: dEQP-VK.wsi.android.display_timing.mailbox.display_timing and CtsDeqpTestCases:include-filter:dEQP-VK.wsi.android.display_timing.fifo.display_timing pass Test: other existing dEQP-VK.wsi.* tests still pass Change-Id: Ib990ab1178dea9d75c27028ed1df2b91b3a7cabb
* | Merge "Explicitly query for VK_EXT_rgba10x6_formats in Vulkan" am: ↵Trevor Black2023-03-221-3/+16
|\| | | | | | | | | | | | | | | | | 7ac34d3210 am: 56df2453e7 am: 600b5dd247 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2472765 Change-Id: I31739e231f1f5d554e72a301333b246d6473ed82 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>