OSDN Git Service

ANDROID: Add target/device support am: 8884508fa6 am: cf0ceff91e am: 96f63775f7 am...
[android-x86/external-minigbm.git] / vgem.c
diff --git a/vgem.c b/vgem.c
index 5380b78..0d0371c 100644 (file)
--- a/vgem.c
+++ b/vgem.c
@@ -35,14 +35,10 @@ static int vgem_bo_create(struct bo *bo, uint32_t width, uint32_t height, uint32
        width = ALIGN(width, MESA_LLVMPIPE_TILE_SIZE);
        height = ALIGN(height, MESA_LLVMPIPE_TILE_SIZE);
 
-       /* HAL_PIXEL_FORMAT_YV12 requires that the buffer's height not be aligned. */
-       if (bo->format == DRM_FORMAT_YVU420_ANDROID)
-               height = bo->height;
-
        return drv_dumb_bo_create(bo, width, height, format, flags);
 }
 
-static uint32_t vgem_resolve_format(uint32_t format, uint64_t flags)
+static uint32_t vgem_resolve_format(struct driver *drv, uint32_t format, uint64_t flags)
 {
        switch (format) {
        case DRM_FORMAT_FLEX_IMPLEMENTATION_DEFINED: