From: Robert Foss <[email protected]>

Avoid overwriting planes with statically asigned indices
with planes that have dynamically assigned indices.

Signed-off-by: Robert Foss <[email protected]>
---
 lib/igt_kms.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 07fb73b..3f953ec 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1326,6 +1326,8 @@ void igt_display_init(igt_display_t *display, int drm_fd)
                                display->has_universal_planes = 1;
                                break;
                        default:
+                               while (p == IGT_PLANE_PRIMARY || p == 
IGT_PLANE_CURSOR)
+                                       p++;
                                plane = &pipe->planes[p];
                                plane->index = p++;
                                break;
-- 
2.5.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to