[igt-dev] [PATCH i-g-t 3/4] lib/igt_kms: Add scaling filter property
Swati Sharma
swati2.sharma at intel.com
Mon Jun 27 18:41:39 UTC 2022
Added "scaling filter" as pipe and plane property.
Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
lib/igt_kms.c | 8 ++++++++
lib/igt_kms.h | 2 ++
2 files changed, 10 insertions(+)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index bd606548..626a2567 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -581,6 +581,7 @@ const char * const igt_plane_prop_names[IGT_NUM_PLANE_PROPS] = {
[IGT_PLANE_ALPHA] = "alpha",
[IGT_PLANE_ZPOS] = "zpos",
[IGT_PLANE_FB_DAMAGE_CLIPS] = "FB_DAMAGE_CLIPS",
+ [IGT_PLANE_SCALING_FILTER] = "SCALING_FILTER",
};
const char * const igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = {
@@ -593,6 +594,7 @@ const char * const igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = {
[IGT_CRTC_ACTIVE] = "ACTIVE",
[IGT_CRTC_OUT_FENCE_PTR] = "OUT_FENCE_PTR",
[IGT_CRTC_VRR_ENABLED] = "VRR_ENABLED",
+ [IGT_CRTC_SCALING_FILTER] = "SCALING_FILTER",
};
const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = {
@@ -2122,6 +2124,9 @@ static void igt_plane_reset(igt_plane_t *plane)
if (igt_plane_has_prop(plane, IGT_PLANE_FB_DAMAGE_CLIPS))
igt_plane_set_prop_value(plane, IGT_PLANE_FB_DAMAGE_CLIPS, 0);
+ if (igt_plane_has_prop(plane, IGT_PLANE_SCALING_FILTER))
+ igt_plane_set_prop_enum(plane, IGT_PLANE_SCALING_FILTER, "Default");
+
igt_plane_clear_prop_changed(plane, IGT_PLANE_IN_FENCE_FD);
plane->values[IGT_PLANE_IN_FENCE_FD] = ~0ULL;
plane->gem_handle = 0;
@@ -2142,6 +2147,9 @@ static void igt_pipe_reset(igt_pipe_t *pipe)
if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_DEGAMMA_LUT))
igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_DEGAMMA_LUT, 0);
+ if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_SCALING_FILTER))
+ igt_pipe_obj_set_prop_enum(pipe, IGT_CRTC_SCALING_FILTER, "Default");
+
pipe->out_fence_fd = -1;
}
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 3e674e74..bd05a13b 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -126,6 +126,7 @@ enum igt_atomic_crtc_properties {
IGT_CRTC_ACTIVE,
IGT_CRTC_OUT_FENCE_PTR,
IGT_CRTC_VRR_ENABLED,
+ IGT_CRTC_SCALING_FILTER,
IGT_NUM_CRTC_PROPS
};
@@ -302,6 +303,7 @@ enum igt_atomic_plane_properties {
IGT_PLANE_ALPHA,
IGT_PLANE_ZPOS,
IGT_PLANE_FB_DAMAGE_CLIPS,
+ IGT_PLANE_SCALING_FILTER,
IGT_NUM_PLANE_PROPS
};
--
2.25.1
More information about the igt-dev
mailing list