aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorMatt Roper <[email protected]>2018-12-17 14:44:14 -0800
committerMatt Roper <[email protected]>2019-01-23 16:29:32 -0800
commit3c8861d84a4d2c6cd7221d18e49bf9201c6c6115 (patch)
tree0325843f3a148f53e299e505073fa280c9f9aa9b /scripts/bpf_helpers_doc.py
parent6e062b60b0b1bd82cac475e63cdb8c451647182b (diff)
drm: Add color management LUT validation helper (v4)
Some hardware may place additional restrictions on the gamma/degamma curves described by our LUT properties. E.g., that a gamma curve never decreases or that the red/green/blue channels of a LUT's entries must be equal. Let's add a helper function that drivers can use to test that a userspace-provided LUT is valid and doesn't violate hardware requirements. v2: - Combine into a single helper that just takes a bitmask of the tests to apply. (Brian Starkey) - Add additional check (always performed) that LUT property blob size is always a multiple of the LUT entry size. (stolen from ARM driver) v3: - Drop the LUT size check again since drm_atomic_replace_property_blob_from_id() already covers this for us. (Alexandru Gheorghe) v4: - Use an enum to describe possible test values rather than #define's; this is cleaner to provide kerneldoc for. (Daniel Vetter) - s/DRM_COLOR_LUT_INCREASING/DRM_COLOR_LUT_NON_DECREASING/. (Ville) Cc: Uma Shankar <[email protected]> Cc: Swati Sharma <[email protected]> Cc: Brian Starkey <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Ville Syrjälä <[email protected]> Signed-off-by: Matt Roper <[email protected]> Reviewed-by: Brian Starkey <[email protected]> Reviewed-by: Alexandru Gheorghe <[email protected]> Reviewed-by: Uma Shankar <[email protected]> Acked-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions