On Wed, 13 Aug 2025 10:21:56 GMT, Jayathirth D V <j...@openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: f8f466f9
Author:    Jayathirth D V <j...@openjdk.org>
URL:       
https://git.openjdk.org/jfx/commit/f8f466f9038b02b1e100cccf25a9ba58e7a06157
Stats:     88 lines in 9 files changed: 58 ins; 16 del; 14 mod

8350479: SW pipeline should use default pipeline in Glass

Reviewed-by: kcr, arapte

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

PR: https://git.openjdk.org/jfx/pull/1868

Reply via email to