summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2015-05-05 11:16:23 -0400
committerRob Clark <robclark@freedesktop.org>2015-05-05 11:16:23 -0400
commitb4defea65fac690aefbe5348ff6ac2976e0ee090 (patch)
tree38bbb699f5da169d36d053941490a3a836dda461
parentb4a6f50f2afdbd1b3762bb518f680aa88d44c517 (diff)
modetest: fix allocation for yuv420/yvu420
Signed-off-by: Rob Clark <robclark@freedesktop.org>
-rw-r--r--tests/modetest/buffers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modetest/buffers.c b/tests/modetest/buffers.c
index 6f5feabd..7e214e85 100644
--- a/tests/modetest/buffers.c
+++ b/tests/modetest/buffers.c
@@ -1162,6 +1162,8 @@ bo_create(int fd, unsigned int format,
switch (format) {
case DRM_FORMAT_NV12:
case DRM_FORMAT_NV21:
+ case DRM_FORMAT_YUV420:
+ case DRM_FORMAT_YVU420:
virtual_height = height * 3 / 2;
break;