Page MenuHome

GPU: Select GPU Backend from Preferences.
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Dec 14 2022, 2:39 PM.

Details

Summary

(MacOS) only: In the System tab of the user preferences the user has the
ability to select a GPU backend that Blender will use. After changing
the GPU backend setting, the user has to restart Blender before the
setting is used.

It was added to start collecting feedback on the Metal backend without
using the command lines.

By default Blender will select OpenGL as backend. When Metal is selected
(via --gpu-backend metal or via user preferences) OpenGL will be used as
fallback when the platform isn't capable of running Metal.

NOTE: This patch requires a version bump, that isn't included in the patch yet. It will be added just before committing.
NOTE: This patch will only be committed after Metal backend is enabled in master.

Diff Detail

Repository
rB Blender
Branch
temp-gpu-backend-selection (branched from master)
Build Status
Buildable 25033
Build 25033: arc lint + arc unit

Event Timeline

Jeroen Bakker (jbakker) requested review of this revision.Dec 14 2022, 2:39 PM
Jeroen Bakker (jbakker) created this revision.
  • Reverted code formatting
Jeroen Bakker (jbakker) retitled this revision from GPU: Let user select GPU backend from user preference. to GPU: Select GPU Backend from Preferences..Dec 14 2022, 3:05 PM
  • Fix compilation warning.
  • Use GPU_platform.h when only need eGPUBackendType.
  • Versioning userdef to set default GPU backend.
  • Version bump
This revision is now accepted and ready to land.Dec 21 2022, 2:30 PM