aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
4 daysgfxstream: Fix synchronization issueHEADmastermainAaron Ruby
Make sure that asynchronous semaphore destruction doesn't happen before the queues that reference them have completed. BUG=343234676 TEST=end2end tests + gfxstream guest ANGLE + gfxstream guest Zink Change-Id: I90237e8002a353cebdacbeaae029a928f846495d
4 daysgfxstream: destroyDevicesLocked needs to use internal destroyFenceLocked ↵Aaron Ruby
implementation. Fence destruction may be deferred if it belongs to the DeviceOpTracker, and will be destroyed in the DeviceOpTracker::onDeviceDestroy call. BUG=343234676 TEST=end2end tests + gfxstream guest ANGLE + gfxstream guest Zink Change-Id: I29b1b202a16a29f04d8f00289b6c70487bcb095e
4 daysMerge "gfxstream: valgrind fix" into mainTreehugger Robot
4 dayslibc++fs is part of libc++ now.Elliott Hughes
Change-Id: I31727f20908dcf10de24bc343d4ab80ed2df0831
4 daysMerge changes from topic "propagate-linear" into mainTreehugger Robot
* changes: gfxstream: For vulkanOnly, propogate the linear bind attribute to the ColorBuffer image creation gfxstream: Add linearPeerImage for Linux guests, to use for imageLayout queries gfxstream: Switch to using scanout path with native DRM images for Linux WSI gfxstream: Change createResource to use stride instead of bpp gfxstream: Remove VkImage from functable handle translation gfxstream: Fix bug in memory unmap. gfxstream: support EXT_queue_family_foreign gfxstream: convert some Vulkan to mesa_log(..)
5 daysgfxstream: valgrind fixGurchetan Singh
Some people have Valgrind on their system and may need this. BUG=329882826 TEST=compile and run Change-Id: I163b5ece7ed089c604e4a530940b660aa705ba94
5 daysMerge "Allocate staging buffer based on its own memory requirements" into mainTreehugger Robot
6 daysAllocate staging buffer based on its own memory requirementsSerdar Kocdemir
Fixes invalid usage of image memory size directly for the allocation of the staging buffer for Android native buffers. Staging buffers might require bigger sizes. Test: Run with -guest-angle and VVL Change-Id: Ib2d95ad04b5180b2e4e41a619c55157a23e8526c
6 daysMerge "Do not try to add transfer src/dst for all buffers" into mainTreehugger Robot
6 daysDo not try to add transfer src/dst for all buffersYahan Zhou
It seems that adding transfer src/dst usages to uniform buffers will make Chrome less stable. Remove them and rely on memory snapshot to snapshot buffer contents. Bug: 342414479 Test: GfxstreamEnd2EndVkSnapshotPipelineTest Change-Id: Ie9572a7e8f015378f89f106ec628647836513d8e
6 daysMerge "Fix for preprocessor condition check on VkReconstruction" into mainTreehugger Robot
6 daysMerge "Remove duplicated flag check on handle types" into mainTreehugger Robot
7 daysFix for preprocessor condition check on VkReconstructionSerdar Kocdemir
Bug: N/A Test: build Change-Id: Ie599d61073cbe9fbf0fddb09cc97387a121cb390
7 daysRemove duplicated flag check on handle typesSerdar Kocdemir
Avoid VK_EXTERNAL_MEMORY_HANDLE_TYPE_ZIRCON_VMO_BIT_FUCHSIA flag being checked redundantly. Bug: N/A Test: build Change-Id: I68b229f089f46c0722f0a74b265493ad2c6ac661
7 daysMerge changes from topic "minigbm-aemu" into mainJoshua Duong
* changes: [qemu] Call address_space_set_vm_operations in RenderLib. Fix ubsan error. Formalize definition of invalid context ids.
7 days[qemu] Call address_space_set_vm_operations in RenderLib.Joshua Duong
This is a hack because qemu's implementation is not using virtio-gpu-gfxstream-renderer APIs yet, so address_space_set_vm_operations was never called in gfxstream space, which causes a null pointer dereference when using asg. Bug: 339461355 Test: Boot emulator with minigbm build Change-Id: Ifaf3fc3d775079cae406152006c611635bc200f4
7 daysFix ubsan error.Joshua Duong
virtio can sometimes send a null iov (num_iovs=0). Don't give memcpy a null pointer. Bug: 339461355 Test: Boot emulator with ubsan Change-Id: I3644e0280b0753159ff241825ca92b5929b6f14f
10 daysFormalize definition of invalid context ids.Joshua Duong
RenderThread guest puids are assumed to be invalid if it is 0, but it seems we were using -1 as an invalid virtio-gpu context id. So Let's check for both in RenderThread. Bug: 339461355 Bug: 300146030 Test: Boot emulator, observe no logspam Change-Id: I01d5bda6b48cf5f71c42f7234609b372e5612dd4
11 daysAdd VK_EXT_host_query_reset to guest's allowed device extensionsAaron Germuth
BUG=343757368 TEST=our custom branch has this change, host_query_reset is now usable. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a6fa05a299d1cb7e299a00c7554331027ee0a874) Merged-In: I47778e5b78852f896b41dcf900ae1cf595bb9a27 Change-Id: I47778e5b78852f896b41dcf900ae1cf595bb9a27
12 daysMerge "Tweaking YCBCR conversion to return correct VK Format" into mainSergiu Ferentz
12 daysgfxstream: For vulkanOnly, propogate the linear bind attribute to the ↵Aaron Ruby
ColorBuffer image creation From virtio-gpu resource creation. BUG=343234676 TEST=gfxstream guest Linux Change-Id: I60da16cf47f80c63a43aab51c2f1c522773472e6
12 daysgfxstream: Add linearPeerImage for Linux guests, to use for imageLayout queriesAaron Ruby
BUG=343234676 TEST=gfxstream guest Linux Change-Id: I9190b73aa16adecf7fe4cee0715b2278631b3703
12 daysgfxstream: Switch to using scanout path with native DRM images for Linux WSIAaron Ruby
BUG=343234676 TEST=compile Change-Id: Ibbdb41b078eda8aa27c70caee0d6d3a8e5fa0758
12 daysMerge "Configure MoltenVK library to use single queue" into mainSerdar Kocdemir
13 daysTweaking YCBCR conversion to return correct VK FormatSergiu
* Adding a drm format field in cb_handler * Convert android->vulkan format mapping into drm->vulkan format mapping Bug: b/323896722 Test: atest android.graphics.cts.MediaVulkanGpuTest#testMediaImportAndRendering Change-Id: I9068be712c07704fde1f8f648f1c18aa281ef3fa
13 daysMerge "Enable portability subset features for MoltenVK" into mainSerdar Kocdemir
13 daysgfxstream: Change createResource to use stride instead of bppAaron Ruby
BUG=343234676 TEST=compile Change-Id: I89c4c76951a2a996d4161b16e24cde971affa994
13 daysgfxstream: Remove VkImage from functable handle translationAaron Ruby
Not required for any Mesa object backings. TODO: Investigate why VkBuffer still required (and crashing without translation) BUG=333133323 TEST=compile Change-Id: Ibd1c93628d01adb90331b20269f34e99138d7007
13 daysgfxstream: Fix bug in memory unmap.Aaron Ruby
The memory must be mapped before mapping BUG=343234676 TEST=compile Change-Id: Ifcb850b963e05e445f6f5f2b3a28e0056f9939f3
13 daysgfxstream: support EXT_queue_family_foreignAaron Ruby
EXT_queue_family_foreign is a parent dependency of QNX_external_memory_screen_buffer. BUG=343234676 Change-Id: I731d11e0670808aae94554ae1c286e1a8318d98d
13 daysgfxstream: convert some Vulkan to mesa_log(..)Gurchetan Singh
There are still some places left in the libgfxstream_vulkan.so dependencies. For example, guest/platform & guest/OpenglSystemCommon. BUG=323384796 TEST=compile Change-Id: I9953b945ae682b9b6c10f7fa001bb9ba071d6a1c
13 daysConfigure MoltenVK library to use single queueSerdar Kocdemir
Enforce single queue family when using MoltenVK to satisfy some ANGLE expectations when using -guest-angle option and avoid crashes at the startup. Bug: 333460957 Test: run with -guest-angle and host vulkan on Mac Change-Id: I92075b855a0a8f10e604a87e3ebd3b4ef35d20da
14 daysEnable portability subset features for MoltenVKSerdar Kocdemir
Portability subset features are necessary for valid usages of Vulkan with not-fully-conformant implementations. Enabling all supported features to maximize the conformance. Without these features enabled, VVL erros can be observed with features such as vertexAttributeAccessBeyondStride, imageViewFormatSwizzle. Bug: 333460957 Test: Run with -use-host-vulkan -guest-angle Change-Id: Ia575ac3b232f5c702f045d7db073d53cc48ae701
2024-05-24Check null pointers before usingYahan Zhou
This handles another corner case where users could delete a buffer before descriptor update is committed. Bug: 342414479 Test: DeleteBufferBeforeCommit Change-Id: I26121c5d5efe8f4e761bc29c1db940b15f91a151
2024-05-22Add snapshot for command bufferYahan Zhou
Record all vkCmd* commands. Also clear them on vkResetCommandBuffer. Also use VK_IMAGE_ASPECT_STENCIL_BIT when snapshotting stencil images. Bug: 330763497 Test: CanSnapshotCommandBuffer Change-Id: I71e1d80e59cb3321f3bb120f520e633aedf182d9
2024-05-22Patch up ColorBuffer for vk snapshotYahan Zhou
Set the flags and properties properly when vk snapshot is enabled. Bug: 340286132 Test: manual Change-Id: Ib911bddd0c68c0248349ed3165c7d5a12fbbbfad
2024-05-21Merge "gles1.1: reset CoreProfileEngineShaders.h" into mainTreehugger Robot
2024-05-21gles1.1: reset CoreProfileEngineShaders.hBo Hu
There are some unintended changes introduced in CoreProfileEngineShaders.h that caused regressions on gles1.1 texture handling reset to the same version as in libopenglrender Bug: 300110548 Change-Id: Ic3ef2108d96962058489c54d7c1cc4f3c1e0e653
2024-05-21Merge "Snapshot descriptor set contents" into mainYahan Zhou
2024-05-21Merge "Support BGRA render target in CompositorVk" into mainJason Macnak
2024-05-20Snapshot descriptor set contentsYahan Zhou
This commmit snapshots vulkan descriptor sets. Please refer to go/aemu-vulkan-snapshot-testing for detailed design. For descriptors, API playback does not work because it does not provide enough granularity. To address this issue, we shadow the states of descriptors and rebuild a descriptor update command on snapshot load. Currently it only works with VulkanBatchedDescriptorSetUpdate. Bug: 332770507 Test: CanSnapshotDescriptors Change-Id: I01bd51cd03072da9357eba2404d408e6995ffc7a
2024-05-20Support BGRA render target in CompositorVkJason Macnak
Bug: b/341647448 Test: GfxstreamEnd2EndTests Change-Id: Ic76847bf65691f65e517aeea994b58762d793422
2024-05-16Merge "Update MoltenVK version for gfxstream" into mainSerdar Kocdemir
2024-05-15Update MoltenVK version for gfxstreamSerdar Kocdemir
Add required portability bits for instance and device creation with the new version of MoltenVK. Also always enable metal_objects extension when using MoltenVK, to be able to retrieve external handles later. Test: Run vulkan apps on Mac with -use-host-vulkan Bug: 332964912 Bug: 339094207 Change-Id: I7491ca6acd2daf69dc3e0df38c94de9ec31281f4
2024-05-14Merge "Remove mock ICD usages and files" into mainSerdar Kocdemir
2024-05-14Remove mock ICD usages and filesSerdar Kocdemir
Mock ICD is not suitable for our needs of testing as we don't validate API usage during the tests. Test: build && run tests on windows Change-Id: I4ddc7e814ebc0bb742c90a17cd5ccc0c1ef7d732
2024-05-13Get MoltenVK working with gfxstreamSerdar Kocdemir
Enable MacOS surface extension and fix function pointer retrieval to get MoltenVK path working for simple apps. Also includes some changes to improve code readability for incoming future changes. Bug: b/332964912 Test: Run vulkan sample apps with -use-host-vulkan Change-Id: Ia39d30f1558396fa656da779f41395297f50c259
2024-05-13Merge "Define MoltenVK functions for gfxstream" into mainSerdar Kocdemir
2024-05-10Merge "Remove extra semicolon in VkEncoder" into mainTreehugger Robot
2024-05-10Merge "Refactor vk image readback in end2end tests" into mainTreehugger Robot