Gearsongallium docker images

You can use gearsongallium opengl in any linux distributive, only what you need is docker and not a very old version of kernel (with firmware) and x-server (with ddx driver).

How to install

From docker hub

Ubuntu

sudo apt get install docker.io
#full image with 32\64 bit libs,steam,wine
sudo docker pull pontostroy/gearsongallium-docker:gog-full
#or mini image 64 bit libs
sudo docker pull pontostroy/gearsongallium-docker:gog-mini

openSUSE

sudo zypper in docker
#full image with 32\64 bit libs,steam,wine
sudo docker pull pontostroy/gearsongallium-docker:gog-full
#or mini image 64 bit libs
sudo docker pull pontostroy/gearsongallium-docker:gog-mini
#and run it
sudo docker run --rm --privileged -ti \
-e "WORKDIR=/opt/`basename $PWD`/"  \
-e="DISPLAY=unix:0.0" \
-v="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
-v="/dev/dri:/dev/dri:rw" \
-v="/$PWD:/opt:rw" \
-v="/dev/snd:/dev/snd" pontostroy/gearsongallium-docker:gog-full mc

#or use my https://github.com/pontostroy/gearsongallium-docker/blob/master/leap-full/run_gog.sh shell script
#current workdir directory will be available in docker /opt/

From git

git clone https://github.com/pontostroy/gearsongallium-docker.git

cd ./gearsongallium-docker

cd ./leap-full
#or
cd ./leap-mini

./build.sh
#or
sudo docker build -t gog-full .

./run_gog.sh

 

run_gog.sh using examples

Run with
         -w wine dir(usually ~/.wine)
         -s steam dir(usually ~/.local/share/Steam)
         -i steam app dir (usually ~/.local/share/Steam/steamapps)
         -p phoronix test suite dir (usually ~/.phoronix-test-suite)
         -n image name or tag
         -h show help message

For wine
/home/pont/.wine wiil be available in docker /home/gog/.wine an you can use yours wine prefix in docker.
Current workdir directory will be available in docker /opt/

./run_gog.sh -n pontostroy/gearsongallium-docker:gog-full -w /home/pont/.wine

For phoronix test suite
/home/pont/.phoronix-test-suite wiil be available in docker /home/gog/.phoronix-test-suite an you can use yours phoronix-test-suite files in docker.
Current workdir directory will be available in docker /opt/

./run_gog.sh -n pontostroy/gearsongallium-docker:gog-full -p /home/pont/.phoronix-test-suite

For Steam
/home/pont/.local/share/Steam (but it is better not to specify an already created Steam and simply specify an empty folder for Steam installation) wiil be available in docker /home/gog/.local/share/Steam, also you can bind~/.local/share/Steam/steamapps  and  use yours game files in docker.
Current workdir directory will be available in docker /opt/

./run_gog.sh -n pontostroy/gearsongallium-docker:gog-full -s /home/pont/.local/share/Steam -i /home/pont/.local/share/Steam/steamapps

 

Performance

openSUSE (kernel 4-5rc1 mesa git) vs Ubuntu (kernel 4-5rc1 mesa git) comparioson and

gearsongallium docker image on opensuse vs gearsongallium docker image on ubuntu

http://openbenchmarking.org/result/1602086-HA-1602087HA48

cohsched1

Mechwarrior Online on radeonsi (hd 7970 gallium-nine vs wine-csmt)

Two Worlds II on radeonsi (hd 7970 wine gallium-nine)

American truck simulator on radeonsi (hd 7970 gallium-nine)

Gears on Gallium 2016.01.30

Released an updated Gears on Gallium:
openSUSE – Leap 42.1
Mesa-git – 11.2_git2016.01.30
Kernel – 4.5-rc1
libdrm – 2.4.99_git2016.01.25
Mesa-demos – 9.1.0_git2015.10.03
wine – 1.9.1-gallium-nine+staging (use WINEARCH=win32 winecfg)
xorg-server – 1.18.99
xf86-video-ati – 7.99.99_2016.01.30
xf86-video-amdgpu – 1.0.0_2016.01.30
xf86-video-intel – 2.9.99_2016.01.30
xf86-video-nouveau – 1.1.99_2016.01.20
KDE – 5.16.0
LLVM – 3.9svn
Phoronix Test Suite – 6.0
Steam – 1.0.0.48
LXDE – 0.8.0

Users root and gog has empy password.
The image is the hybrid iso, can be written as the CD and as USB flash drive (use dd for writing).
Download 957 mb
md5 9b28b99d47e841ba5786e70fd1ddf687
sha256 d9ca6713ab141175f76f18324f42a2635bfbfc8f13ed8173c5b91b88b5472579

How to use wine on livecd:
It’s better make /home/gog/.wine as symlink to external hdd\usb (ram disk is only 700 mb) or add ramdisk_size=1024000 (1gb) to kernel parameters to increase ramdisk size.

opengl 4.1

2014-12-27-063423_1920x1080_scrot

2014-12-27-113211_1920x1080_scrot

AMDGPU LLVM SI Machine Schedule test

How to
Mesa-dev >= 11.2
llvm >= 3.9.0
env variable R600_DEBUG=sisched

Results

Default

Lightsmark
lightdef

Furmark
furrdef

GFXBenchgfxdef1

Valley
00000

SI Scheduler

Lightsmark
lightshed

Furmark
furrshed1

GFXBench
gfxsched

Valley
00001

 

Qemu virgl (virtual virtio-gpu) on radeonsi

How to run
Kernel >= 4.4
Mesa >= 11.2-devel  (–with-gallium-drivers=….virgl )
virglrenderer – http://cgit.freedesktop.org/~airlied/virglrenderer/
qemu >= 2.5  – https://www.kraxel.org/cgit/qemu/log/?h=work/virgl ( …–enable-virglrenderer, sdl2)

for headless

qemu ....... -display egl -name %name -vga virtio
qemu-eglview %name

with X

qemu ....... -display sdl,gl=on
qemu ....... -display gkt,gl=on

For openSUSE 42.1

Qemu – http://download.opensuse.org/repositories/home:/pontostroy:/branches:/Virtualization/openSUSE_Leap_42.1/

Mesa, virglrendered – http://download.opensuse.org/repositories/home:/pontostroy:/X11/openSUSE_Leap_42.1/

Kernel – http://download.opensuse.org/repositories/home:/pontostroy:/drm-next/openSUSE_Leap_42.1/

 

GFXBench 4.0 on radeonsi (how to run and mesa vs windows benchmark result)

How to run.

GFXBench 4.0 does no twork with radeon mesa driver out-of-box.
I change two strings in driver binary file (but you can change them in mesa source and recompile)

sed -i "s|X.Org|Intel|g" ./radeonsi_dri.so
sed -i "s|Gallium|Radeong|g" ./radeonsi_dri.so

and run gfxbench with this env variable

vblank_mode=0 MESA_GL_VERSION_OVERRIDE=4.1COMPAT ./gfxbench_gl

Result (i5 3330, HD 7970)

opensuse mesa-git
gfxb

Windows 10

gfxbwin

 

 

 

 

Bulletstorm on radeonsi (gallium-nine vs wine-csmt)

Mass Effect on radeonsi (gallium-nine vs wine-csmt)