Turn on GPU acceleration in Photoshop for Wine
My GPU is straightforward - built into the Core i7-3370 Intel HD 4000 processor. OS: Debian 9.6 Stretch (stable). The tested version of Photoshop 19.0.2 32bit.
First, let's see what version of mesa is installed. (on my Debian stable, it was naturally old - a branch of the 13th version, although the 17th version is already relevant).
glxinfo | grep mesa -i(will bring various letters to the console from which it is possible to isolate the version of the month)
If the version is antediluvian, then it would be necessary to bring your graphic economy to the actual form. To do this, we add a third-party repository, which includes the latest stable versions of free video drivers for AMD Radeon, Intel and Nvidia (Nouveau) chips. The repository also contains the Intel ANV Vulkan-drivers and Radeon RADV. Packages in this repository are taken from Debian Unstable (Sid) and rebuilt under Debian 9 so as not to break anything in the system. ( source )
wget http://download.opensuse.org/repositories/home:/Sunderland93:/mesa-updates-debian/Debian_9.0/all/mesa-updates-debian_1.0-3_all.deb
sudo dpkg -i mesa-updates-debian_1.0-3_all.deb
sudo apt update && sudo apt full-upgradeNext, set the wine (devel branch) and winetricks.
Then, with winetricks, we complete the wine with the following good:
Fonts:
- allfonts
- corefonts
- all fonts after 2010
Libraries:
- gdiplus
- vcrun2012
- vcrun2013
- vcrun2015
- atmlib
- msxml3
- msxml6
- d3dx9
- d3dx10
- d3dx11_42
- d3dx11_43
- dxvk
- vulkanrt
Install Photoshop (I repeat, it was tested on CC v19.0.2 32bit). After launch, a CEPHtmlEngine error will appear, which can be removed in the Photoshop settings item (“Edit> Preferences> Plugins”, remove the checkboxes with “Enable generators”, “Enable Remote Connections”). In the same place, in the settings, go to the “Performance” item and see that the bird opposite the “Use Graphic Processor” is inactive, and nothing can be done about it. Exit Photoshop, run winecfg. Go to the “Libraries” tab, search for “dxgi” in the “New override for library” field, add it to the list (Add), select it from the list, edit it (Edit) and select builtin (wine) in the options. Apply-save-exit, launch Photoshop, and the GPU acceleration in the settings should be active.
PS If someone will experiment with other video cards or linux distributions, please share the results in the comments.
PPS There is a suspicion that such a config (with the substitution of the dxgi library) will help solve many problems with OpenGL applications under Wine.