File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -1819,6 +1819,25 @@ static const u32 skl_planar_formats[] = {
1819
1819
DRM_FORMAT_NV12 ,
1820
1820
};
1821
1821
1822
+ static const uint32_t glk_planar_formats [] = {
1823
+ DRM_FORMAT_C8 ,
1824
+ DRM_FORMAT_RGB565 ,
1825
+ DRM_FORMAT_XRGB8888 ,
1826
+ DRM_FORMAT_XBGR8888 ,
1827
+ DRM_FORMAT_ARGB8888 ,
1828
+ DRM_FORMAT_ABGR8888 ,
1829
+ DRM_FORMAT_XRGB2101010 ,
1830
+ DRM_FORMAT_XBGR2101010 ,
1831
+ DRM_FORMAT_YUYV ,
1832
+ DRM_FORMAT_YVYU ,
1833
+ DRM_FORMAT_UYVY ,
1834
+ DRM_FORMAT_VYUY ,
1835
+ DRM_FORMAT_NV12 ,
1836
+ DRM_FORMAT_P010 ,
1837
+ DRM_FORMAT_P012 ,
1838
+ DRM_FORMAT_P016 ,
1839
+ };
1840
+
1822
1841
static const u64 skl_plane_format_modifiers_noccs [] = {
1823
1842
I915_FORMAT_MOD_Yf_TILED ,
1824
1843
I915_FORMAT_MOD_Y_TILED ,
@@ -2101,8 +2120,13 @@ skl_universal_plane_create(struct drm_i915_private *dev_priv,
2101
2120
plane -> update_slave = icl_update_slave ;
2102
2121
2103
2122
if (skl_plane_has_planar (dev_priv , pipe , plane_id )) {
2104
- formats = skl_planar_formats ;
2105
- num_formats = ARRAY_SIZE (skl_planar_formats );
2123
+ if (INTEL_GEN (dev_priv ) >= 10 || IS_GEMINILAKE (dev_priv )) {
2124
+ formats = glk_planar_formats ;
2125
+ num_formats = ARRAY_SIZE (glk_planar_formats );
2126
+ } else {
2127
+ formats = skl_planar_formats ;
2128
+ num_formats = ARRAY_SIZE (skl_planar_formats );
2129
+ }
2106
2130
} else {
2107
2131
formats = skl_plane_formats ;
2108
2132
num_formats = ARRAY_SIZE (skl_plane_formats );
You can’t perform that action at this time.
0 commit comments