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
12691269 #define AMDGPU_FAMILY_GC_10_3_7 151 /* GC 10.3.7 */
12701270 #define AMDGPU_FAMILY_GC_11_5_0 150 /* GC 11.5.0 */
12711271
1272+/* FIXME wrong namespace! */
1273+struct 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+
12721281 #if defined(__cplusplus)
12731282 }
12741283 #endif
include/uapi/drm/drm_mode.h+0−8
@@ -846,14 +846,6 @@ struct drm_color_ctm { · 845 unmodified lines
846846 __u64 matrix[9];
847847 };
848848
849−struct 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−
857849 struct drm_color_lut {
858850 /*
859851 * Values are mapped linearly to 0.0 - 1.0 range, with 0x0 == 0.0 and