Merge "Emulator gralloc: Fix RAW_SENSOR conditions." into jb-mr1-dev

This commit is contained in:
Eino-Ville Talvala
2012-08-20 16:26:30 -07:00
committed by Android (Google) Code Review

View File

@@ -217,8 +217,8 @@ static int gralloc_alloc(alloc_device_t* dev,
case HAL_PIXEL_FORMAT_RAW_SENSOR: case HAL_PIXEL_FORMAT_RAW_SENSOR:
bpp = 2; bpp = 2;
align = 16*bpp; align = 16*bpp;
if (! ((sw_read && hw_cam_write) || (sw_write && hw_cam_read) ) ) { if (! ((sw_read || hw_cam_read) && (sw_write || hw_cam_write) ) ) {
// Raw sensor data only goes to/from camera to CPU // Raw sensor data only goes between camera and CPU
return -EINVAL; return -EINVAL;
} }
// Not expecting to actually create any GL surfaces for this // Not expecting to actually create any GL surfaces for this