egl: move egl display resolving into the library


This makes the function reusable by e.g. the ffmpeg backend.

Pick-to: 6.12
Change-Id: I34c17778b38062e4743cdfac17514d15b6d53df6
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commit7648e5a98bff57db78bb34d9ba1fa1973163cb18
parent325914fff7006c93f840b113d156f6a12a7660c4
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeMon, 21 Sep 2026 08:37:58 +0000