virtgpu_crossdomain: Allow BLOBs with SENSOR_DIRECT_DATA

BUG=b:238609372
TEST= vts -m VtsHalSensorsV2_1TargetTest

Change-Id: Id50e8057a0cc3150bb6b29bd7bdaa31fb7faa1ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/3774935
Tested-by: Jason Macnak <natsu@google.com>
Commit-Queue: Jason Macnak <natsu@google.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
This commit is contained in:
Jason Macnak 2022-07-19 14:48:39 -07:00 committed by Chromeos LUCI
parent bb62d42f28
commit d0cce89e65

View file

@ -94,12 +94,13 @@ static void add_combinations(struct driver *drv)
/*
* R8 format is used for Android's HAL_PIXEL_FORMAT_BLOB and is used for JPEG snapshots
* from camera, input/output from hardware decoder/encoder, and
* from camera, input/output from hardware decoder/encoder and sensors, and
* AHBs used as SSBOs/UBOs.
*/
drv_modify_combination(drv, DRM_FORMAT_R8, &metadata,
BO_USE_CAMERA_READ | BO_USE_CAMERA_WRITE | BO_USE_HW_VIDEO_DECODER |
BO_USE_HW_VIDEO_ENCODER | BO_USE_GPU_DATA_BUFFER);
BO_USE_HW_VIDEO_ENCODER | BO_USE_SENSOR_DIRECT_DATA |
BO_USE_GPU_DATA_BUFFER);
drv_modify_linear_combinations(drv);
}