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

Alan Snyder javalists at cbfiddle.com
Sat Jan 16 00:05:23 UTC 2021


I must admit I am surprised at how complex the solution is to a simple observation.

Specifically:

1. What is the point of having multiple boolean command line parameters? Instead of separately enabling and disabling pipelines, why not have a single parameter that lists the desired pipelines in priority order. If none of the listed pipelines are available, then the JDK should be free to make its own choice of an available pipeline.

2. I presume this issue is currently a macOS-specific issue, but couldn't a similar issue arise in the future on other platforms? That would argue for using a parameter whose name includes the platform name, so that instructions for multiple platforms (e.g. in some testing script) can be simultaneously specified.

  Alan




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



More information about the lanai-dev mailing list