RFR: 8271024: Implement macOS Metal Rendering Pipeline [v3]

Martin Fox mfox at openjdk.org
Wed Jun 25 16:16:35 UTC 2025


On Wed, 25 Jun 2025 13:37:42 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> Regarding reproducing the issue originally seen in PickTest3D : PickTest3D is updated in 2015 under [JDK-8130532](https://bugs.openjdk.org/browse/JDK-8130532) to use alpha value as 1.0 instead of 0.5 for diffuse color.

Thanks for tracking that down. The description in [JDK-8130532](https://bugs.openjdk.org/browse/JDK-8130532) references [JDK-8095058](https://bugs.openjdk.org/browse/JDK-8095058). From what I can tell that was the original bug that was causing incorrect results on macOS and covering up the incorrect alpha value in the diffuse color. I think using setOpaque: to rip out the alpha channel was a work-around for JDK-8095058 and is probably no longer necessary.

But removing the alpha channel made macOS match the output of Windows and Linux. Is JavaFX designed to work without an alpha channel when the window is not TRANSPARENT?

> Regarding running demos in VM : Is Prism falling back to SW pipeline? (You can check for this info using -Dprism.verbose=true).

In my Windows VM Prism reports that it's using the D3D pipeline. And Prism isn't throwing any errors or issuing any warnings, it just doesn't draw except for the ColorCube toy.

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

PR Comment: https://git.openjdk.org/jfx/pull/1824#issuecomment-3005360379


More information about the openjfx-dev mailing list