[igt-dev] [PATCH i-g-t 3/4] lib/igt_kms: Update cursor when fb width/height changes too.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon Apr 29 16:05:56 UTC 2019


Call SetCursor on w/h size change as well, this fixes a test
failure when using kms calls to change cursor size.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 lib/igt_kms.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 4eb432917307..1b3483439474 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2749,7 +2749,9 @@ static int igt_cursor_commit_legacy(igt_plane_t *cursor,
 	uint32_t crtc_id = pipe->crtc_id;
 	int ret;
 
-	if (igt_plane_is_prop_changed(cursor, IGT_PLANE_FB_ID)) {
+	if (igt_plane_is_prop_changed(cursor, IGT_PLANE_FB_ID) ||
+	    igt_plane_is_prop_changed(cursor, IGT_PLANE_CRTC_W) ||
+	    igt_plane_is_prop_changed(cursor, IGT_PLANE_CRTC_H)) {
 		if (cursor->gem_handle)
 			LOG(display,
 			    "SetCursor pipe %s, fb %u %dx%d\n",
-- 
2.20.1



More information about the igt-dev mailing list