mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Camera HAL Vts : Fix usage flag combination during gralloc allocation." into stage-aosp-rvc-ts-dev am: 7cc876ee02 am: 314611d129 am: 4181fe2378
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12173503 Change-Id: I5dd4ed3ffb25a1f8c39f59e4cfe089d373b47e86
This commit is contained in:
@@ -4453,9 +4453,12 @@ void CameraHidlTest::processCaptureRequestInternal(uint64_t bufferUsage,
|
||||
nullptr};
|
||||
} else {
|
||||
allocateGraphicBuffer(testStream.width, testStream.height,
|
||||
android_convertGralloc1To0Usage(halStreamConfig.streams[0].producerUsage,
|
||||
halStreamConfig.streams[0].consumerUsage),
|
||||
halStreamConfig.streams[0].overrideFormat, &buffer_handle);
|
||||
/* We don't look at halStreamConfig.streams[0].consumerUsage
|
||||
* since that is 0 for output streams
|
||||
*/
|
||||
android_convertGralloc1To0Usage(
|
||||
halStreamConfig.streams[0].producerUsage, bufferUsage),
|
||||
halStreamConfig.streams[0].overrideFormat, &buffer_handle);
|
||||
outputBuffer = {halStreamConfig.streams[0].id,
|
||||
bufferId,
|
||||
buffer_handle,
|
||||
|
||||
Reference in New Issue
Block a user