aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Snap for 5605988 from 7aed9b4344b307de827567d3f8498bfbd978fe34 to qt-releaseandroid-vts-10.0_r5android-vts-10.0_r4android-vts-10.0_r3android-vts-10.0_r2android-vts-10.0_r1android-cts-10.0_r5android-cts-10.0_r4android-cts-10.0_r3android-cts-10.0_r2android-cts-10.0_r1android-10.0.0_r6android-10.0.0_r5android-10.0.0_r46android-10.0.0_r4android-10.0.0_r3android-10.0.0_r2android-10.0.0_r17android-10.0.0_r11android-10.0.0_r10android-10.0.0_r1android10-tests-releaseandroid10-security-releaseandroid10-s3-releaseandroid10-s2-releaseandroid10-s1-releaseandroid10-releaseandroid-build-team Robot2019-05-253-72/+6
|\ | | | | | | Change-Id: I6e5afa2b2057621750f39ce1c3b54a4c327298d9
| * Retire glMapBufferRange special path for GLDirectMemandroid10-devRoman Kiryanov2019-05-233-72/+6
| | | | | | | | | | | | | | | | | | | | | | | | This call should be implemented with a dedicated subdevice similar to the host memory allocator to support snapshots. Bug: 132180901 Test: make Change-Id: I0542d987b3c4b014aa37b1c7b34b7092ad4e8fac Merged-In: I14931f38f6093205ac73f608992a2eadbfd9e97a Signed-off-by: Roman Kiryanov <rkir@google.com>
* | Snap for 5595753 from fb065fe01a7813e6356e0dbd4b54d102d3536072 to qt-releaseandroid-build-team Robot2019-05-231-1/+5
|\| | | | | | | Change-Id: I788af55ac4c63b54367083c03b22febf800ca184
| * Fix eglQueryStringYahan Zhou2019-05-221-1/+5
| | | | | | | | | | | | BUG: 131917822 Test: cts-tradefed run cts -m CtsDeqpTestCases -t dEQP-EGL.functional.choose_config.simple* Change-Id: Idc82f469c606009eb0ace6f33ad9524b4a70877d
* | Snap for 5582428 from d50251d8439d22605c5abc7ae27473ab3a31f627 to qt-releaseandroid-build-team Robot2019-05-182-11/+8
|\| | | | | | | Change-Id: I6f0eb3baf4a7e3e85b2f6261c9a9509a6a5f0b3a
| * Do not read and do not convert pixels for cameraRoman Kiryanov2019-05-172-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Camera is a special citizen, it delivers buffer bits directly (no reading required) and supports YUV_420 (interleaved), this is the only format it supports. Bug: 130295800 Test: emulator -wipe-data -no-snapshot -camera-back virtualscene Test: take photo, take video Change-Id: I0192084d88f27235d4d1a2c0a7598cd28200bc48 Merged-In: Ib37ec0a85a48d6a6ac6bbf6b9033ffd60ac7a727 Signed-off-by: Roman Kiryanov <rkir@google.com>
* | Snap for 5567188 from 146f745d0de292a04b88d1665edbdb4c75f9dbeb to qt-releaseandroid-build-team Robot2019-05-151-0/+10
|\| | | | | | | Change-Id: I016b434a1b1d1cb11dec031095b309cf59942902
| * Put HAL_PIXEL_FORMAT_RGB_888 back for CPU accessRoman Kiryanov2019-05-141-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BasicVulkanGpuTest expilictly requests GPU_SAMPLED_IMAGE usage, we can use it to decide if we support RGB_888 (Vulkan does not support it). HardwareBufferTest#testCreate requests only CPU access. Bug: 132447509 Bug: 131184223 Test: [OpenGL, Vulkan] x [CtsGraphicsTestCases, CtsHardwareTestCases] Change-Id: I2bbcddd2b3153208cbb00b76caca9564b743c61e Merged-In: Ib3f5d6cd9ed361205952d99b2f7173d5518dea79 Signed-off-by: Roman Kiryanov <rkir@google.com>
* | Snap for 5540187 from 09627c8a55cc3e18b538fc3f47e5b58bf6b8454d to qt-releaseandroid-build-team Robot2019-05-082-3/+2
|\| | | | | | | Change-Id: I322ea0e4e3c35deee4c0cbeab597ba623b65bff2
| * Fix build on older APIs, take 2Lingfeng Yang2019-05-062-3/+2
| | | | | | | | | | | | | | | | | | There can be periods in the platform version, so it's not safe to use. Just run PLATFORM_SDK_VERSION instead. Bug: 131089111 Change-Id: I72c0af3407f88753cf69b2ba2565b221345d3f3a
* | Snap for 5537346 from d4fa2de8bde26f16d17ae130d24d6c4da718f510 to qt-releaseandroid-build-team Robot2019-05-072-0/+5
|\| | | | | | | Change-Id: Iedfc014e298e5e648dd923e66133aea10069eafe
| * Fix build on older apisLingfeng Yang2019-05-062-0/+3
| | | | | | | | | | | | | | | | some gralloc0 entry points not defined for older api levels bug: Bug: 131089111 Change-Id: If3f1843ffb2c008052a5dec87b9063d2500298f1
| * Merge "Modify gralloc0 implementation" into qt-devValerie Hau2019-05-061-0/+2
| |\
| | * Modify gralloc0 implementationValerie Hau2019-04-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add validateBufferSize and getTransportSize Bug: 131089111 Test: build, boot Change-Id: I9820197865e47832ae209cbf1cac3b544f45e60e
* | | Snap for 5523284 from 187c4584ebb772d5d0ef2ece11779e583a5656ba to qt-releaseandroid-build-team Robot2019-05-028-84/+174
|\| | | | | | | | | | | Change-Id: I234b6f960cef9e70e593074a10f33970ef0d6a64
| * | Add a wrapper for vkCreateImageViewRoman Kiryanov2019-05-014-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to update arguments for vkCreateImageView before sending them to the host. Bug: 131176903 Test: make Change-Id: I44e0bc845435cbfebe60cad1e5f8594cb0e9f673 Merged-In: Ia83af721caabedad3a194d3776882ac75690bb02 Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | vk_find_struct: use the requested type to calculate sTypeRoman Kiryanov2019-04-305-82/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the type->id mapping to get Vulkan struct sType at compile time. This will produce a compile time error for unknown types. Bug: 131181334 Test: make Change-Id: Ib3003195d686ba20b3ea16a3215c4e6d07426fb7 Merged-In: I47800f6068cb21eabac935cf5873faee7e5a2854
| * | Set suggestedYcbcrModel to RGB_IDENTITY for RGB formatsRoman Kiryanov2019-04-302-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The YCBCR_601 model should be applied only for YUV formats. Bug: 131176903 Test: CtsGraphicsTestCases \ Test: android.graphics.cts.BasicVulkanGpuTest# \ Test: testBasicBufferImportAndRenderingExternalFormat\ Test: [AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM] Change-Id: I4701464e99928d62aa6e0382daff002d2cd90003 Merged-In: I1888238a890bcbc685b63b996790d8de5f55b412 Signed-off-by: Roman Kiryanov <rkir@google.com>
* | | Snap for 5519018 from f78f995bf290b3e3427dabf3b28b08b71445bc89 to qt-releaseandroid-build-team Robot2019-05-018-173/+454
|\| | | | | | | | | | | Change-Id: I33aea8d373b9c752df1a121b0ebcb5a064e3006b
| * | Use VkFormat to pass Vulkan formatsRoman Kiryanov2019-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For better type safety. Bug: 131176903 Test: make Change-Id: Ic32f43b4ce3d8a609e70bb8021b5560aa97493ef Merged-In: Id7c67e234ec96b01bbf53bae257c1b0a355e2d0a Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | Add VkBufferCollectionImageCreateInfoFUCHSIA into goldfish_vk_private_defs.hRoman Kiryanov2019-04-301-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 131176903 Test: make Change-Id: I82d5edba3bfcde83acef95cc59c9b15045a448cc Merged-In: Ieaa4ddfa2e6030a21ccf3887d3fe796ec242643d Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | Set format in getAndroidHardwareBufferPropertiesANDROIDRoman Kiryanov2019-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to set the 'format' field if no external format is provided. Bug: 131176903 Test: android.graphics.cts.BasicVulkanGpuTest# \ Test: testBasicBufferImportAndRenderingExplicitFormat \ Test: [AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM] Change-Id: I7c11c0e8babf87f8a55e5f8e91df739c2d8ef153 Merged-In: I5a32f4ab0714704a0e3f8dfd3998d6efba66b3e9 Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | Use FIDL for QEMU pipe stream on Fuchsia.David Reveman2019-04-303-1/+313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed as POSIX IO support on Fuchsia is being deprecated. Benchmarks also show that FIDL API is ~ 25X faster for large transfers to host so this will result in a performance improvement. Bug: 111137294 Test: none Change-Id: I4538adb5075a25a2d099332b6f3eae42eab717e5 Merged-In: Iedda195ef0931c1f561f4b60ab811d968a83c0e8
| * | Improve creating of local copies and appending then to the chainRoman Kiryanov2019-04-302-119/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add a dedicated function to create local copies with pNext; * add vk_struct_chain_iterator to attach structs into the chain. Test: make Bug: 131181334 Change-Id: I963bc70541650b9ef0a75d464a57d8223504dc07 Merged-In: I754efa82be381d001cbd50190dd98fd6b2f66bfb
| * | Fix build breakRoman Kiryanov2019-04-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static_assert with no message is a C++17 extension Bug: 131176903 Test: make Change-Id: Ib3a07f5c6edee8dd1dfab3ac9d57209c920a287d Merged-In: I156b3754d142d3903c732e1ac7e95c137302a15a Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | Add templates to vk_find_structRoman Kiryanov2019-04-303-59/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces amount of type castings and improves type safety. Bug: 131181334 Test: make Change-Id: I4d24dc81d8f6c062d5c221aea0b683f01f9e0689 Merged-In: Ide295127573ad16915ae1fd481601e6b1632b1f9 Signed-off-by: Roman Kiryanov <rkir@google.com>
* | | Snap for 5515452 from 0b3829063d4a6ce528bd073f14d5d0aa35c7182c to qt-releaseandroid-build-team Robot2019-04-306-206/+193
|\| | | | | | | | | | | Change-Id: I126d513b24352b5fe574d3830af1c9cb9e2776a7
| * | Put the AHB format to externalFormatRoman Kiryanov2019-04-261-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other parts of the code expect to see an AHB format there. The format field is ignored if externalFormat is set. Bug: 131181334 Test: make Change-Id: I509f608f66f2cd5c354beebb9500ab6a79fb6568 Merged-In: Ic34c6a2bea57c0008cceb99b5a50f79392092b14 Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | Mark gpu_usage as constRoman Kiryanov2019-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 131181334 Test: make Change-Id: I317e265594471e0a0eaf81a6520d497a558a2a32 Merged-In: I2feefa3e180a6f19be532db3e9f11b593bcdf47f Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | switch to control device on fuchsiaDavid Reveman2019-04-264-198/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes import/export race conditions and provides a more appropriate mechanism for exporting memory. Bug: 111137294 Test: none Change-Id: I0f6f5a69304eb762376f11caf155a50423ee4f89 Merged-In: I8f78f622368583f96776673f98d716fb51956823
| * | Fix vk_append_struct to add elements after the last oneRoman Kiryanov2019-04-261-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also limits list's length to some random number to crash if the struct chain has a loop. Bug: 131181334 Test: make Change-Id: I265b0c69e528154917f031799b37014502fd4ec3 Merged-In: I5ae17ce129aba820b98f999208802c9135cbd8b8 Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | Revert "Fix vk_append_struct to add elements after the last one"Lingfeng Yang2019-04-261-20/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 589c957ec9924f86757067b9195480fc95b3877a. Reason for revert: Emulator build break: I0425 08:32:25.637401 139856603629312 process.py:43] In file included from /usr/local/google/home/lfy/emu/device/generic/goldfish-opengl/system/vulkan_enc/AndroidHardwareBuffer.cpp:19: I0425 08:32:25.637607 139856603629312 process.py:43] /usr/local/google/home/lfy/emu/device/generic/goldfish-opengl/system/vulkan_enc/vk_util.h:229:7: error: no member named 'abort' in the global namespace I0425 08:32:25.637734 139856603629312 process.py:43] ::abort(); // crash on loops in the chain I0425 08:32:25.637989 139856603629312 process.py:43] ~~^ I0425 08:32:25.638082 139856603629312 process.py:43] 1 error generated. Change-Id: I3c78c841c821d29fb5fbdad552adee567893b2ba Merged-In: I61bc2011e51bc92a3fffcb36910d916092d3897d Test: none Bug: 131181334
| * | Fail on_vkCreateImage if format is not recongnizedRoman Kiryanov2019-04-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fail on_vkCreateImage earlier if vk_format_from_android did not recognize the format. Bug: 131181334 Test: make Change-Id: Idf884c1e8d4fc1a8f3bc40fa195719fced231d1b Merged-In: I21e213bb1f4e2b22989269b77859912a51ad5e28 Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | Fix vk_append_struct to add elements after the last oneRoman Kiryanov2019-04-261-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also limits list's length to some random number to crash if the struct chain has a loop. Bug: 131181334 Test: make Change-Id: I385dc02012290b2e1a2a07dd00e209326a7196b5 Merged-In: I4e7beb622afc35ee26b58f7060596bd3f2250156 Signed-off-by: Roman Kiryanov <rkir@google.com>
* | | Snap for 5511022 from 872613d9c5b00b93db0eea1c64765ee1d5c1480e to qt-releaseandroid-build-team Robot2019-04-276-53/+138
|\| | | | | | | | | | | Change-Id: I67ffcc64757152b4e99e5e4798ae721b91bc985a
| * | Implement GetBufferCollectionPropertiesFUCHSIADavid Reveman2019-04-243-1/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also fixes the implementation of GetMemoryZirconHandlePropertiesFUCHSIA. Test: none Bug: 111137294 Change-Id: If862823bf0eb555734e5a4528bc9c83d8071a2ff Merged-In: I2a6ac9132aa591f3410871f3500171a0e8746fd1
| * | Switch to goldfish address space deviceDavid Reveman2019-04-244-46/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use goldfish address space device on fuchsia. Test: none Bug: 111137294 Change-Id: I1b340f21f745075848df613d2e47e5f169e8b802 Merged-In: Ibf86ba488c08c2ea5825fd271ae1a1dcc5a604da
| * | Use VMO memory instead of cookieDavid Reveman2019-04-241-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use VMO memory instead of cookie for association between VMOs and color buffers. Test: none Bug: 111137294 Change-Id: If07c76f818cdeaab97d812bfb1d472e014a42d91 Merged-In: I86b20e10a1c0a6ae4ec61b436b81e776f9aa3583
* | | Snap for 5503058 from 6832185dea7b0705f96128e598bb138610f23385 to qt-releaseandroid-build-team Robot2019-04-256-18/+46
|\| | | | | | | | | | | Change-Id: I0deca772b9a5ff847fe16e50c9be1dab2216d6de
| * | Retire HAL_PIXEL_FORMAT_RGB_888 from grallocRoman Kiryanov2019-04-241-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not a must and adds confusion between OpenGL (supported) and Vulkan (not supported) they are mixed (e.g. AHardwareBuffer_allocate which goes though OpenGL) Bug: 131184223 Test: lunch sdk_gphone_x86-userdebug Test: emulator -wipe-data -no-snapshot -show-kernel -feature Vulkan,GLDirectMem Test: ./android-cts/tools/cts-tradefed -- run cts -m CtsGraphicsTestCases Test: emulator -wipe-data -no-snapshot -feature GLESDynamicVersion,PlayStoreImage,KernelDeviceTreeBlobSupport -gpu host Test: ./android-cts/tools/cts-tradefed -- run cts -m CtsNativeHardwareTestCases Test: ./android-cts/tools/cts-tradefed -- run cts -m CtsGraphicsTestCases Test: ./android-cts/tools/cts-tradefed -- run cts -m CtsCameraTestCases Change-Id: Idb5d5885efd18219c86cc1b76722d41f49d68d03 Merged-In: Ie6f40c717a36ae4a9ef477cc420dc083b63ffbc3 Signed-off-by: Roman Kiryanov <rkir@google.com>
| * | add missing fuchsia ICD codeDavid Reveman2019-04-242-6/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the full goldfish vulkan ICD to be built outside the fuchsia tree. Test: none Bug: 111137294 Change-Id: I02fe24617e114e0c07dc010bb7268ec6124af48e Merged-In: I62065020349dfc3e34f93380abcab22c31a7e856
| * | Fix blend constants encoding errorLingfeng Yang2019-04-243-3/+3
| |/ | | | | | | | | | | | | | | | | | | bug: 111137294 Wow :) Test: none Change-Id: I2146a8c2b796ae8db5043f2153174daea8323221 Merged-In: I724b0a641b22495897b72db19b2e2771a96689fc
* | Snap for 5490587 from 7585636a4cbe4fdf51499f968ba4a954db7812cf to qt-releaseandroid-build-team Robot2019-04-204-2/+4
|\| | | | | | | Change-Id: I51400665244cb4fba281b5105562023ca218a02b
| * Add hwvulkan_headers dependency to vulkan driverJesse Hall2019-04-184-2/+4
| | | | | | | | | | | | | | Bug: 129696724 Test: make checkbuild Change-Id: I4e36b89ff2f008ce4893e7e8ab32f20c40913a8b Merged-In: I4e36b89ff2f008ce4893e7e8ab32f20c40913a8b
* | Snap for 5476769 from 76835be663b5a1723d7134bfb9fca58b0ed2a4e8 to qt-releaseandroid-build-team Robot2019-04-172-8/+24
|\| | | | | | | Change-Id: I2363f0efbebbf5dee02557e94125510bea9ce6c4
| * Mark YUV camera buffers as interleavedRoman Kiryanov2019-04-162-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | HAL_PIXEL_FORMAT_YCbCr_420_888 does not specify the exact buffer layout. EmulatedFakeCamera3.cpp uses interleaved UV planes, while other places place them separately. Bug: 130295800 Bug: 129974968 Test: run cts -m CtsCameraTestCases \ -t android.hardware.camera2.cts.ImageReaderTest#teutYUVResolutions Merged-In: If3a495aa794d9ab09288b7b92be7258a07cc077d Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: I33f6777b5cca6f4fa0c61ac3db994230d6b6efb0
* | Snap for 5470312 from 3624615bc01fd9c3ef81d3324cf6a11ee0cfc630 to qt-releaseandroid-build-team Robot2019-04-151-1/+4
|\| | | | | | | Change-Id: Ia3fa4eb9308f151328662d58188404c276b1ff50
| * Fix build breakRoman Kiryanov2019-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | error: 'class std::vector<char>' has no member named 'data' Bug: 130246090 Test: make Change-Id: I1c7146a6eada5be4aa0678c7a3ddb762d080c981 Merged-In: I39eec3b4d6621067387e48e1481de3cd614b79a1 Signed-off-by: Roman Kiryanov <rkir@google.com>
| * [Goldfish-opengl] Add empty function definition for alloc_device_t::dump() ↵Weilun Du2019-04-111-0/+3
| | | | | | | | | | | | | | | | | | am: 9160f9f2fa am: 7359abbf6d am: 65576fcaca BUG: 125540538 Change-Id: I00aeb57a840ca5932011a3ae01d4f089c9bf8a2d (cherry picked from commit 1a85198d3287a31734f62f3f83b97c1c86f66fa9)
* | Snap for 5434517 from 289dd5efbc9228334e6bc86e9d5217d59f126483 to qt-releaseandroid-build-team Robot2019-04-040-0/+0
|\| | | | | | | Change-Id: I01a57c0e78f1c8cb42b50fde302194da81a1cc6d