diff options
| author | Ville Syrjälä <[email protected]> | 2023-10-13 13:14:02 +0000 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2023-11-23 13:11:47 +0000 |
| commit | deac453244d309ad7a94d0501eb5e0f9d8d1f1df (patch) | |
| tree | 58814c152945dfdffa00860c671c85171c56af7c /drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | |
| parent | drm/i915: s/clamp()/min()/ in i965_lut_11p6_max_pack() (diff) | |
| download | kernel-deac453244d309ad7a94d0501eb5e0f9d8d1f1df.tar.gz kernel-deac453244d309ad7a94d0501eb5e0f9d8d1f1df.zip | |
drm/i915: Fix glk+ degamma LUT conversions
The current implementation of change_lut_val_precision() is just
a convoluted way of shifting by 8. Implement the proper rounding
by just using drm_color_lut_extract() and intel_color_lut_pack()
like everyone else does.
And as the uapi can't handle >=1.0 values but the hardware
can we need to clamp the results appropriately in the readout
path.
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Chaitanya Kumar Borah <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c')
0 files changed, 0 insertions, 0 deletions
