Bug 155357

Summary: Provide an option to select GPU used for Skia hardware rendering
Product: LibreOffice Reporter: Hossein <hossein>
Component: graphics stackAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: enhancement CC: telesto
Priority: medium    
Version: 7.6.0.0 alpha1+   
Hardware: All   
OS: All   
Whiteboard: QA:needsComment
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103266, 129062    

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.