From 7f6209e46f8de409f182931e0ca23bb64f1a8e39 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Wed, 26 Oct 2016 13:36:42 -0700 Subject: gbm: Export a per plane getter for stride v2: Preserve legacy behavior when plane is 0 (Jason Ekstrand) EINVAL when input plane is greater than total planes (Jason Ekstrand) Don't leak the image after fromPlanar (Daniel) Move bo->image check below plane count preventing bad index succeeding (Daniel) v3: Fix DRIimage leak (using Jason's recommended change) Make plane 0 return planar stride. This might break legacy behavior (Jason) v4: Move bogus hunk for get_handle_for_plane to the right patch (Jason) Fix error handling path to be cleaner (Jason) v5: Add assert for dumb BOs to make sure plane == 0 (Jason) Signed-off-by: Ben Widawsky Reviewed-by: Eric Engestrom (v1) Reviewed-by: Jason Ekstrand Acked-by: Daniel Stone --- src/gbm/gbm-symbols-check | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gbm/gbm-symbols-check') diff --git a/src/gbm/gbm-symbols-check b/src/gbm/gbm-symbols-check index 1e6dd4d3ec0..459006a63fe 100755 --- a/src/gbm/gbm-symbols-check +++ b/src/gbm/gbm-symbols-check @@ -14,6 +14,7 @@ gbm_bo_unmap gbm_bo_get_width gbm_bo_get_height gbm_bo_get_stride +gbm_bo_get_stride_for_plane gbm_bo_get_format gbm_bo_get_device gbm_bo_get_handle -- cgit v1.2.3