RFR: 8350479: SW pipeline should use default pipeline in Glass [v3]

Jayathirth D V jdv at openjdk.org
Mon Aug 18 07:30:10 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 passes 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.

Jayathirth D V has updated the pull request incrementally with one additional commit since the last revision:

  Update based on review comments

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/1868/files
  - new: https://git.openjdk.org/jfx/pull/1868/files/859d4266..db315d15

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1868&range=02
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1868&range=01-02

  Stats: 30 lines in 8 files changed: 2 ins; 2 del; 26 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