History

drm/uapi: Move drm_color_ctm_3x4 out from drm_mode.h

drm_color_ctm_3x4 is some undocumented amgdpu private uapi and thus has no business being in drm_mode.h. At least move it to some amdgpu specific header, albeit with the wrong namespace as maybe something somewhere is using this already?

Ville Syrjälä committed 2 years ago

Commit ef283671 parent a6cd27d2 files · +9 −8Browse files

Showing the changes to include/uapi (2 of 2 files). Show all

Unified · Split

2 files
  1. include/uapi/drm/amdgpu_drm.h +9 −0
  2. include/uapi/drm/drm_mode.h +0 −8
include/uapi/drm/amdgpu_drm.h+9−0
@@ -1269,6 +1269,15 @@ struct drm_amdgpu_info_gpuvm_fault { · 1268 unmodified lines
1269#define AMDGPU_FAMILY_GC_10_3_7 151 /* GC 10.3.7 */1269#define AMDGPU_FAMILY_GC_10_3_7 151 /* GC 10.3.7 */
1270#define AMDGPU_FAMILY_GC_11_5_0 150 /* GC 11.5.0 */1270#define AMDGPU_FAMILY_GC_11_5_0 150 /* GC 11.5.0 */
1271 1271
1272/* FIXME wrong namespace! */
1273struct drm_color_ctm_3x4 {
1274 /*
1275 * Conversion matrix with 3x4 dimensions in S31.32 sign-magnitude
1276 * (not two's complement!) format.
1277 */
1278 __u64 matrix[12];
1279};
1280
1272#if defined(__cplusplus)1281#if defined(__cplusplus)
1273}1282}
1274#endif1283#endif
include/uapi/drm/drm_mode.h+0−8
@@ -846,14 +846,6 @@ struct drm_color_ctm { · 845 unmodified lines
846 __u64 matrix[9];846 __u64 matrix[9];
847};847};
848 848
849struct drm_color_ctm_3x4 {
850 /*
851 * Conversion matrix with 3x4 dimensions in S31.32 sign-magnitude
852 * (not two's complement!) format.
853 */
854 __u64 matrix[12];
855};
856
857struct drm_color_lut {849struct drm_color_lut {
858 /*850 /*
859 * Values are mapped linearly to 0.0 - 1.0 range, with 0x0 == 0.0 and851 * Values are mapped linearly to 0.0 - 1.0 range, with 0x0 == 0.0 and