wndw.c (b05d873808c77fedd25130b0355acc0da1c11e19) wndw.c (88b600d421a5550cd56e13f2eda34cbefe417c28)
1/*
2 * Copyright 2018 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 180 unchanged lines hidden (view full) ---

189 case DRM_FORMAT_ARGB8888 : asyw->image.format = 0xcf; break;
190 case DRM_FORMAT_RGB565 : asyw->image.format = 0xe8; break;
191 case DRM_FORMAT_XRGB1555 :
192 case DRM_FORMAT_ARGB1555 : asyw->image.format = 0xe9; break;
193 case DRM_FORMAT_XBGR2101010:
194 case DRM_FORMAT_ABGR2101010: asyw->image.format = 0xd1; break;
195 case DRM_FORMAT_XBGR8888 :
196 case DRM_FORMAT_ABGR8888 : asyw->image.format = 0xd5; break;
1/*
2 * Copyright 2018 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 180 unchanged lines hidden (view full) ---

189 case DRM_FORMAT_ARGB8888 : asyw->image.format = 0xcf; break;
190 case DRM_FORMAT_RGB565 : asyw->image.format = 0xe8; break;
191 case DRM_FORMAT_XRGB1555 :
192 case DRM_FORMAT_ARGB1555 : asyw->image.format = 0xe9; break;
193 case DRM_FORMAT_XBGR2101010:
194 case DRM_FORMAT_ABGR2101010: asyw->image.format = 0xd1; break;
195 case DRM_FORMAT_XBGR8888 :
196 case DRM_FORMAT_ABGR8888 : asyw->image.format = 0xd5; break;
197 case DRM_FORMAT_XRGB2101010:
198 case DRM_FORMAT_ARGB2101010: asyw->image.format = 0xdf; break;
197 default:
198 WARN_ON(1);
199 return -EINVAL;
200 }
201 return 0;
202}
203
204static int

--- 372 unchanged lines hidden ---
199 default:
200 WARN_ON(1);
201 return -EINVAL;
202 }
203 return 0;
204}
205
206static int

--- 372 unchanged lines hidden ---