OSDN Git Service

minigbm: Make sure no mappings remain when closing a GEM handle
[android-x86/external-minigbm.git] / helpers.c
index c6e3527..238563d 100644 (file)
--- a/helpers.c
+++ b/helpers.c
@@ -147,7 +147,7 @@ int drv_bo_from_format(struct bo *bo, uint32_t stride, uint32_t aligned_height,
         *  - the chroma stride is 16 bytes aligned, i.e., the luma's strides
         *    is 32 bytes aligned.
         */
-       if (bo->format == DRM_FORMAT_YVU420_ANDROID) {
+       if (format == DRM_FORMAT_YVU420_ANDROID) {
                assert(aligned_height == bo->height);
                assert(stride == ALIGN(stride, 32));
        }