@@ -106,48 +106,104 @@ static const struct de2_fmt_info de2_formats[] = {
106
106
.rgb = true,
107
107
.csc = SUN8I_CSC_MODE_OFF ,
108
108
},
109
+ {
110
+ /* for DE2 VI layer which ignores alpha */
111
+ .drm_fmt = DRM_FORMAT_XRGB4444 ,
112
+ .de2_fmt = SUN8I_MIXER_FBFMT_ARGB4444 ,
113
+ .rgb = true,
114
+ .csc = SUN8I_CSC_MODE_OFF ,
115
+ },
109
116
{
110
117
.drm_fmt = DRM_FORMAT_ABGR4444 ,
111
118
.de2_fmt = SUN8I_MIXER_FBFMT_ABGR4444 ,
112
119
.rgb = true,
113
120
.csc = SUN8I_CSC_MODE_OFF ,
114
121
},
122
+ {
123
+ /* for DE2 VI layer which ignores alpha */
124
+ .drm_fmt = DRM_FORMAT_XBGR4444 ,
125
+ .de2_fmt = SUN8I_MIXER_FBFMT_ABGR4444 ,
126
+ .rgb = true,
127
+ .csc = SUN8I_CSC_MODE_OFF ,
128
+ },
115
129
{
116
130
.drm_fmt = DRM_FORMAT_RGBA4444 ,
117
131
.de2_fmt = SUN8I_MIXER_FBFMT_RGBA4444 ,
118
132
.rgb = true,
119
133
.csc = SUN8I_CSC_MODE_OFF ,
120
134
},
135
+ {
136
+ /* for DE2 VI layer which ignores alpha */
137
+ .drm_fmt = DRM_FORMAT_RGBX4444 ,
138
+ .de2_fmt = SUN8I_MIXER_FBFMT_RGBA4444 ,
139
+ .rgb = true,
140
+ .csc = SUN8I_CSC_MODE_OFF ,
141
+ },
121
142
{
122
143
.drm_fmt = DRM_FORMAT_BGRA4444 ,
123
144
.de2_fmt = SUN8I_MIXER_FBFMT_BGRA4444 ,
124
145
.rgb = true,
125
146
.csc = SUN8I_CSC_MODE_OFF ,
126
147
},
148
+ {
149
+ /* for DE2 VI layer which ignores alpha */
150
+ .drm_fmt = DRM_FORMAT_BGRX4444 ,
151
+ .de2_fmt = SUN8I_MIXER_FBFMT_BGRA4444 ,
152
+ .rgb = true,
153
+ .csc = SUN8I_CSC_MODE_OFF ,
154
+ },
127
155
{
128
156
.drm_fmt = DRM_FORMAT_ARGB1555 ,
129
157
.de2_fmt = SUN8I_MIXER_FBFMT_ARGB1555 ,
130
158
.rgb = true,
131
159
.csc = SUN8I_CSC_MODE_OFF ,
132
160
},
161
+ {
162
+ /* for DE2 VI layer which ignores alpha */
163
+ .drm_fmt = DRM_FORMAT_XRGB1555 ,
164
+ .de2_fmt = SUN8I_MIXER_FBFMT_ARGB1555 ,
165
+ .rgb = true,
166
+ .csc = SUN8I_CSC_MODE_OFF ,
167
+ },
133
168
{
134
169
.drm_fmt = DRM_FORMAT_ABGR1555 ,
135
170
.de2_fmt = SUN8I_MIXER_FBFMT_ABGR1555 ,
136
171
.rgb = true,
137
172
.csc = SUN8I_CSC_MODE_OFF ,
138
173
},
174
+ {
175
+ /* for DE2 VI layer which ignores alpha */
176
+ .drm_fmt = DRM_FORMAT_XBGR1555 ,
177
+ .de2_fmt = SUN8I_MIXER_FBFMT_ABGR1555 ,
178
+ .rgb = true,
179
+ .csc = SUN8I_CSC_MODE_OFF ,
180
+ },
139
181
{
140
182
.drm_fmt = DRM_FORMAT_RGBA5551 ,
141
183
.de2_fmt = SUN8I_MIXER_FBFMT_RGBA5551 ,
142
184
.rgb = true,
143
185
.csc = SUN8I_CSC_MODE_OFF ,
144
186
},
187
+ {
188
+ /* for DE2 VI layer which ignores alpha */
189
+ .drm_fmt = DRM_FORMAT_RGBX5551 ,
190
+ .de2_fmt = SUN8I_MIXER_FBFMT_RGBA5551 ,
191
+ .rgb = true,
192
+ .csc = SUN8I_CSC_MODE_OFF ,
193
+ },
145
194
{
146
195
.drm_fmt = DRM_FORMAT_BGRA5551 ,
147
196
.de2_fmt = SUN8I_MIXER_FBFMT_BGRA5551 ,
148
197
.rgb = true,
149
198
.csc = SUN8I_CSC_MODE_OFF ,
150
199
},
200
+ {
201
+ /* for DE2 VI layer which ignores alpha */
202
+ .drm_fmt = DRM_FORMAT_BGRX5551 ,
203
+ .de2_fmt = SUN8I_MIXER_FBFMT_BGRA5551 ,
204
+ .rgb = true,
205
+ .csc = SUN8I_CSC_MODE_OFF ,
206
+ },
151
207
{
152
208
.drm_fmt = DRM_FORMAT_ARGB2101010 ,
153
209
.de2_fmt = SUN8I_MIXER_FBFMT_ARGB2101010 ,
0 commit comments