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
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha1+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
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:


Attachments

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: 7.6.0.0.alpha1+ (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:

https://github.com/SaschaWillems/Vulkan

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?
https://ask.libreoffice.org/t/how-can-i-have-skia-vulcan-engage-the-nvidia-gpu-on-my-notebook/69440/11
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.