RFR: 8258754: Gracefully fallback to the OpenGL rendering pipeline if Metal rendering pipeline initialization fails [v8]
Phil Race
prr at openjdk.java.net
Fri Jan 15 21:02:28 UTC 2021
On Fri, 15 Jan 2021 11:14:25 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.
>
> Ajit Ghaisas has updated the pull request incrementally with one additional commit since the last revision:
>
> handle invalid requests to use default pipeline
src/java.desktop/macosx/classes/sun/java2d/macos/MacOSFlags.java line 115:
> 113: } else if (metalState == PropertyState.ENABLED) {
> 114: if (oglState == PropertyState.ENABLED) {
> 115: oglEnabled = true;
By adding the invalid state handling further up, this condition can never be true
-------------
PR: https://git.openjdk.java.net/lanai/pull/147
More information about the lanai-dev
mailing list