[5/5] drm/i915/display: Load the lut values and enable sharpness

2024-07-08 Thread Nemesa Garg
Load the lut values during pipe enable. v2: Add the display version check Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/display/intel_crtc.c| 3 +++ drivers/gpu/drm/i915/display/intel_display.c | 6 ++ drivers/gpu/drm/i915/display/skl_scaler.c| 13 - 3 files

[4/5] drm/i915/display: Add registers and compute the strength

2024-07-08 Thread Nemesa Garg
Add new registers and related bits. Compute the strength value and tap value based on display mode. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/display/intel_display.c | 5 +- .../drm/i915/display/intel_display_types.h| 1 + .../drm/i915/display/intel_sharpen_filter.c | 105

[3/5] drm/i915/display: Enable the second scaler for sharpness

2024-07-08 Thread Nemesa Garg
As only second scaler can be used for sharpness check if it is available and if panel fitting is also not enabled, the set the sharpness. Panel fitting will have the preference over sharpness property. v2: Added the panel fitting check before enabling sharpness Signed-off-by: Nemesa Garg

[v4 2/5] drm/i915/display: Compute the scaler filter coefficients

2024-07-08 Thread Nemesa Garg
. --v4: fix ifndef header naming issue reported by kernel test robot Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_display.c | 2 + .../drm/i915/display/intel_display_types.h| 9 ++ .../drm/i915/display

[1/5] drm: Introduce sharpness mode property

2024-07-08 Thread Nemesa Garg
e/decrease the sharpness level depending on the content displayed. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/drm_atomic_uapi.c | 4 drivers/gpu/drm/drm_crtc.c| 35 +++ include/drm/drm_crtc.h| 17 +++ 3 files changed, 56 insertion

[0/5] Introduce drm sharpening property

2024-07-08 Thread Nemesa Garg
the sharpened image to original image. Middleware MR link: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3665 IGT patchwork link: https://patchwork.freedesktop.org/series/130218/ --v3: Added uapi documentation. Made sharpness word consistent. Nemesa Garg (5): drm: Introduce

[PATCH 5/5] drm/i915/display: Load the lut values and enable sharpness

2024-07-05 Thread Nemesa Garg
Load the lut values during pipe enable. v2: Add the display version check Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/display/intel_crtc.c| 3 +++ drivers/gpu/drm/i915/display/intel_display.c | 6 ++ drivers/gpu/drm/i915/display/skl_scaler.c| 13 - 3 files

[PATCH 2/5] drm/i915/display: Compute the scaler filter coefficients

2024-07-05 Thread Nemesa Garg
. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_display.c | 2 + .../drm/i915/display/intel_display_types.h| 9 ++ .../drm/i915/display/intel_sharpen_filter.c | 121 ++ .../drm/i915/display

[PATCH 4/5] drm/i915/display: Add registers and compute the strength

2024-07-05 Thread Nemesa Garg
Add new registers and related bits. Compute the strength value and tap value based on display mode. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/display/intel_display.c | 5 +- .../drm/i915/display/intel_display_types.h| 1 + .../drm/i915/display/intel_sharpen_filter.c | 105

[PATCH 3/5] drm/i915/display: Enable the second scaler for sharpness

2024-07-05 Thread Nemesa Garg
As only second scaler can be used for sharpness check if it is available and if panel fitting is also not enabled, the set the sharpness. Panel fitting will have the preference over sharpness property. v2: Added the panel fitting check before enabling sharpness Signed-off-by: Nemesa Garg

[PATCH 1/5] drm: Introduce sharpness mode property

2024-07-05 Thread Nemesa Garg
e/decrease the sharpness level depending on the content displayed. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/drm_atomic_uapi.c | 4 drivers/gpu/drm/drm_crtc.c| 35 +++ include/drm/drm_crtc.h| 17 +++ 3 files changed, 56 insertion

[PATCH 0/5] Introduce drm sharpening property

2024-07-05 Thread Nemesa Garg
the sharpened image to original image. Middleware MR link: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3665 IGT patchwork link: https://patchwork.freedesktop.org/series/130218/ --v3: Added uapi documentation. Made sharpness word consistent. Nemesa Garg (5): drm: Introduce

[PATCH v2 5/5] drm/i915/display: Load the lut values and enable sharpness

2024-03-07 Thread Nemesa Garg
Load the lut values during pipe enable. v2: Add the display version check Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/display/intel_crtc.c| 3 +++ drivers/gpu/drm/i915/display/intel_display.c | 14 +- drivers/gpu/drm/i915/display/skl_scaler.c| 13 - 3

[PATCH 4/5] drm/i915/display: Add registers and compute the strength

2024-03-07 Thread Nemesa Garg
Add new registers and related bits. Compute the strength value and tap value based on display mode. Signed-off-by: Nemesa Garg --- .../drm/i915/display/intel_display_types.h| 1 + .../drm/i915/display/intel_sharpen_filter.c | 81 +++ .../drm/i915/display

[PATCH v2 3/5] drm/i915/display: Enable the second scaler

2024-03-07 Thread Nemesa Garg
The strength value should be greater than zero to set to the scaler flag true and if the second scaler is free then it can be used for sharpening purpose. v2: Modify the condition for checking pipe scaler availability Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/display

[PATCH 2/5] drm/i915/display: Compute the scaler filter coefficients

2024-03-07 Thread Nemesa Garg
Scaler coefficient values are based on experiments and vary for different tap value/win size. These values are normalized by taking the sum of all values and then dividing each value with a sum. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu

[PATCH 1/5] drm: Introduce sharpness mode property

2024-03-07 Thread Nemesa Garg
This allows the user to set the intensity so as to get the sharpness effect. It is useful in scenario when the output is blurry and user want to sharpen the pixels. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/drm_atomic_uapi.c | 4 drivers/gpu/drm/drm_crtc.c| 17

[PATCH 0/5] Introduce drm sharpening property

2024-03-07 Thread Nemesa Garg
to blend the sharpened image to original image. Userspace implementation for sharpening feature and IGT implementation is in progress. Nemesa Garg (5): drm: Introduce sharpness mode property drm/i915/display: Compute the scaler filter coefficients drm/i915/display: Enable the second scaler

[RFC 5/5] drm/i915/display: Load the lut values and enable sharpness

2024-02-14 Thread Nemesa Garg
Load the lut values during pipe enable. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/display/intel_crtc.c| 3 +++ drivers/gpu/drm/i915/display/intel_display.c | 12 +++- drivers/gpu/drm/i915/display/skl_scaler.c| 11 ++- 3 files changed, 24 insertions(+), 2

[RFC 4/5] drm/i915/display/: Add registers and compute the strength

2024-02-14 Thread Nemesa Garg
Add new registers and related bits. Compute the strength value and tap value based on display mode. Signed-off-by: Nemesa Garg --- .../drm/i915/display/intel_display_types.h| 1 + .../drm/i915/display/intel_sharpen_filter.c | 84 +++ .../drm/i915/display

[RFC 2/5] drm/i915/display/: Compute the scaler filter coefficients

2024-02-14 Thread Nemesa Garg
Scaler coefficient values are based on experiments and vary for different tap value/win size. These values are normalized by taking the sum of all values and then dividing each value with a sum. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu

[RFC 3/5] drm/i915/dispaly/: Enable the second scaler

2024-02-14 Thread Nemesa Garg
The strength value should be greater than zero to set to the scaler flag true and if the second scaler is free then it can be used for sharpening purpose. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/i915/display/intel_display.c | 7 +- .../drm/i915/display/intel_display_types.h| 1

[RFC 1/5] drm: Introduce sharpeness mode property

2024-02-14 Thread Nemesa Garg
This allows the user to set the intensity so as to get the sharpness effect. It is useful in scenario when the output is blurry and user want to sharpen the pixels. Signed-off-by: Nemesa Garg --- drivers/gpu/drm/drm_atomic_uapi.c | 4 drivers/gpu/drm/drm_crtc.c| 17

[RFC 0/5] Introduce drm sharpening property

2024-02-14 Thread Nemesa Garg
to blend the sharpened image to original image. Userspace implementation for sharpening feature and IGT implementation is in progress. Nemesa Garg (5): drm: Introduce sharpeness mode property drm/i915/display/: Compute the scaler filter coefficients drm/i915/dispaly/: Enable the second scaler