RFR: 8350479: SW pipeline should use default pipeline in Glass
Jayathirth D V
jdv at openjdk.org
Wed Aug 13 13:15:41 UTC 2025
We have Metal pipeline also now in macOS apart from OpenGL pipeline for accelerated hardware pipelines.
Currently when Software pipeline is used we continue to use OpenGL(ES2) pipeline on glass side, which is the default hardware pipeline in macOS. If we want to switch to Metal pipeline as default hardware pipeline in prism, we should be able to use Metal pipeline in glass also when software pipeline is used. For this to happen we need to set some information when SWPipeline is getting initialized and pass that information to glass.
This PR adds new flag `useMTLInGlass` in device details when SWPipeline is getting initialized and then pass it to glass code. When SWPipeline is used based on this flag we will use appropriate hardware pipeline in glass.
Patch is tested when useMTLInGlass is set to true/false and then using -Dprism.order=es2/mtl/sw and it picks proper GlassView/Layer.
-------------
Commit messages:
- 8350479: SW pipeline should use default pipeline in Glass
Changes: https://git.openjdk.org/jfx/pull/1868/files
Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1868&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8350479
Stats: 50 lines in 8 files changed: 37 ins; 0 del; 13 mod
Patch: https://git.openjdk.org/jfx/pull/1868.diff
Fetch: git fetch https://git.openjdk.org/jfx.git pull/1868/head:pull/1868
PR: https://git.openjdk.org/jfx/pull/1868
More information about the openjfx-dev
mailing list