Bug 155357 - Provide an option to select GPU used for Skia hardware rendering
Summary: Provide an option to select GPU used for Skia hardware rendering
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
(earliest affected) alpha1+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Whiteboard: QA:needsComment
Depends on:
Blocks: Commandline Skia
  Show dependency treegraph
Reported: 2023-05-16 13:29 UTC by Hossein
Modified: 2023-07-10 21:06 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2023-05-16 13:29:28 UTC
I am using X11/Skia ui for LibreOffice on Linux.

Version: (X86_64) / LibreOffice Community
Build ID: c01639c556276e496d9e762468cad6b27f9ed0f4
CPU threads: 12; OS: Linux 5.19; UI render: Skia/Vulkan; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded

By enabling Skia, and having "Force Skia software rendering" unchecked, I can see Skia log using "Copy skia.log" button:

RenderMethod: vulkan
Vendor: ...
Device: ...
API: ...
Driver: ...
DeviceType: integrated
DeviceName: Intel(R) Graphics (...)
Denylisted: no

I have a dual Intel/NVIDIA GPU installed, and now it is using Intel integrated GPU with Vulkan renderer. But, it should be possible to tell LibreOffice to use specific GPU.

In Vulkan C++ examples, I see that the binaries take a -g/--gpu command line argument, so that you can tell them which GPU to use:


I think having such an option in LibreOffice would be useful.
Comment 1 Hossein 2023-05-17 08:59:15 UTC
A similar request from someone using LibreOffice on Windows:

How can I have Skia/Vulcan engage the Nvidia GPU on my notebook?
Comment 2 Hossein 2023-07-10 21:06:12 UTC
I have generalized the feature request to "provide an option" instead of asking for a command line option.