We want to make sure userspace is aware of the 1D LUT interpolation. While linear interpolation is common it might not be supported on all HW. Give driver implementers a way to specify their interpolation.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -944,6 +944,19 @@ enum drm_colorop_type { · 943 unmodified lines | ||
| 944 | 944 | DRM_COLOROP_MULTIPLIER, |
| 945 | 945 | }; |
| 946 | 946 | |
| 947 | +/** | |
| 948 | + * enum drm_colorop_lut1d_interpolation_type - type of interpolation for 1D LUTs | |
| 949 | + */ | |
| 950 | +enum drm_colorop_lut1d_interpolation_type { | |
| 951 | + /** | |
| 952 | + * @DRM_COLOROP_LUT1D_INTERPOLATION_LINEAR: | |
| 953 | + * | |
| 954 | + * Linear interpolation. Values between points of the LUT will be | |
| 955 | + * linearly interpolated. | |
| 956 | + */ | |
| 957 | + DRM_COLOROP_LUT1D_INTERPOLATION_LINEAR, | |
| 958 | +}; | |
| 959 | + | |
| 947 | 960 | /** |
| 948 | 961 | * struct drm_plane_size_hint - Plane size hints |
| 949 | 962 | * @width: The width of the plane in pixel |