1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. 3 */ 4 5 #include "dpu_hw_mdss.h" 6 7 static const uint32_t qcom_compressed_supported_formats[] = { 8 DRM_FORMAT_ABGR8888, 9 DRM_FORMAT_ARGB8888, 10 DRM_FORMAT_XBGR8888, 11 DRM_FORMAT_XRGB8888, 12 DRM_FORMAT_BGR565, 13 14 DRM_FORMAT_NV12, 15 }; 16 17 static const uint32_t plane_formats[] = { 18 DRM_FORMAT_ARGB8888, 19 DRM_FORMAT_ABGR8888, 20 DRM_FORMAT_RGBA8888, 21 DRM_FORMAT_BGRA8888, 22 DRM_FORMAT_XRGB8888, 23 DRM_FORMAT_RGBX8888, 24 DRM_FORMAT_BGRX8888, 25 DRM_FORMAT_XBGR8888, 26 DRM_FORMAT_RGB888, 27 DRM_FORMAT_BGR888, 28 DRM_FORMAT_RGB565, 29 DRM_FORMAT_BGR565, 30 DRM_FORMAT_ARGB1555, 31 DRM_FORMAT_ABGR1555, 32 DRM_FORMAT_RGBA5551, 33 DRM_FORMAT_BGRA5551, 34 DRM_FORMAT_XRGB1555, 35 DRM_FORMAT_XBGR1555, 36 DRM_FORMAT_RGBX5551, 37 DRM_FORMAT_BGRX5551, 38 DRM_FORMAT_ARGB4444, 39 DRM_FORMAT_ABGR4444, 40 DRM_FORMAT_RGBA4444, 41 DRM_FORMAT_BGRA4444, 42 DRM_FORMAT_XRGB4444, 43 DRM_FORMAT_XBGR4444, 44 DRM_FORMAT_RGBX4444, 45 DRM_FORMAT_BGRX4444, 46 }; 47 48 static const uint32_t plane_formats_yuv[] = { 49 DRM_FORMAT_ARGB8888, 50 DRM_FORMAT_ABGR8888, 51 DRM_FORMAT_RGBA8888, 52 DRM_FORMAT_BGRX8888, 53 DRM_FORMAT_BGRA8888, 54 DRM_FORMAT_XRGB8888, 55 DRM_FORMAT_XBGR8888, 56 DRM_FORMAT_RGBX8888, 57 DRM_FORMAT_RGB888, 58 DRM_FORMAT_BGR888, 59 DRM_FORMAT_RGB565, 60 DRM_FORMAT_BGR565, 61 DRM_FORMAT_ARGB1555, 62 DRM_FORMAT_ABGR1555, 63 DRM_FORMAT_RGBA5551, 64 DRM_FORMAT_BGRA5551, 65 DRM_FORMAT_XRGB1555, 66 DRM_FORMAT_XBGR1555, 67 DRM_FORMAT_RGBX5551, 68 DRM_FORMAT_BGRX5551, 69 DRM_FORMAT_ARGB4444, 70 DRM_FORMAT_ABGR4444, 71 DRM_FORMAT_RGBA4444, 72 DRM_FORMAT_BGRA4444, 73 DRM_FORMAT_XRGB4444, 74 DRM_FORMAT_XBGR4444, 75 DRM_FORMAT_RGBX4444, 76 DRM_FORMAT_BGRX4444, 77 78 DRM_FORMAT_NV12, 79 DRM_FORMAT_NV21, 80 DRM_FORMAT_NV16, 81 DRM_FORMAT_NV61, 82 DRM_FORMAT_VYUY, 83 DRM_FORMAT_UYVY, 84 DRM_FORMAT_YUYV, 85 DRM_FORMAT_YVYU, 86 DRM_FORMAT_YUV420, 87 DRM_FORMAT_YVU420, 88 }; 89