am 072b5f0d: Merge change I42e2860a into eclair
Merge commit '072b5f0df424b2a0c50cdb7b605d3a749dcac7cf' into eclair-mr2 * commit '072b5f0df424b2a0c50cdb7b605d3a749dcac7cf': should help [2223746] qsd8k MDP locks up, logs show copyBits failed (Connection timed out) in Passion camera zoom level 1
This commit is contained in:
		| @@ -42,8 +42,10 @@ | ||||
|  | ||||
| #if defined(COPYBIT_MSM7K) | ||||
| #define MAX_SCALE_FACTOR    (4) | ||||
| #define MAX_DIMENSION       (4096) | ||||
| #elif defined(COPYBIT_QSD8K) | ||||
| #define MAX_SCALE_FACTOR    (8) | ||||
| #define MAX_DIMENSION       (2048) | ||||
| #else | ||||
| #error "Unsupported MDP version" | ||||
| #endif | ||||
| @@ -366,6 +368,12 @@ static int stretch_copybit( | ||||
|             return -EINVAL; | ||||
|         } | ||||
|  | ||||
|         if (src->w > MAX_DIMENSION || src->h > MAX_DIMENSION) | ||||
|             return -EINVAL; | ||||
|  | ||||
|         if (dst->w > MAX_DIMENSION || dst->h > MAX_DIMENSION) | ||||
|             return -EINVAL; | ||||
|  | ||||
|         const uint32_t maxCount = sizeof(list.req)/sizeof(list.req[0]); | ||||
|         const struct copybit_rect_t bounds = { 0, 0, dst->w, dst->h }; | ||||
|         struct copybit_rect_t clip; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user