RFR: 8258754: Gracefully fallback to the OpenGL rendering pipeline if Metal rendering pipeline initialization fails

Jayathirth D V jdv at openjdk.java.net
Fri Jan 8 08:03:18 UTC 2021


On Wed, 6 Jan 2021 11:05:56 GMT, Ajit Ghaisas <aghaisas at openjdk.org> wrote:

> This implements fallback to the OpenGL rendering pipeline if Metal rendering pipeline initialization fails.
> I have tested this fallback on 10.15.4 by stubbing code. We need real testing on a system where Metal is not available.

My 2 cents. Me and Ajit discussed this internally adding this info in PR also.

1) No options - Use OpenGL(Switch to Metal later when we want to make it default)
2) opengl == true || metal == false - Use OpenGL
3) metal initialization fails print log in verbose- Use OpenGL
4) metal == true || opengl == false - Use Metal
5) opengl initialization fails print log in verbose(In initial release when OpenGL is default, i am not 100% sure whether we should try Metal pipeline or just exit) - Use Metal / exit
6) Both fails print log and exit

All these things can be handled in this PR or future changes.

-------------

PR: https://git.openjdk.java.net/lanai/pull/147


More information about the lanai-dev mailing list