Skip to content

Commit d2794de

Browse files
committed
Enable GPU acceleration
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 099a58a commit d2794de

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ RUN apk add --no-cache \
1111
sdl2_mixer-dev \
1212
libpulse \
1313
libxmp \
14+
libdrm \
1415
mesa-dri-gallium \
1516
mesa-gbm \
17+
mesa-egl \
18+
mesa-gl \
19+
mesa-gles \
1620
xorg-server \
17-
xf86-video-fbdev \
18-
xf86-input-evdev \
21+
xf86-video-modesetting \
22+
xf86-input-libinput \
1923
xdpyinfo \
2024
xinit \
2125
gcc \
@@ -29,7 +33,7 @@ COPY demo.c Makefile topaz-8.otf *.png music.mod* ./
2933

3034
RUN make
3135

32-
# Create minimal X config for framebuffer
36+
# Create minimal X config for GPU acceleration
3337
RUN mkdir -p /etc/X11 && cat > /etc/X11/xorg.conf << 'EOF'
3438
Section "ServerFlags"
3539
Option "DontVTSwitch" "true"
@@ -41,8 +45,7 @@ EndSection
4145

4246
Section "Device"
4347
Identifier "Card0"
44-
Driver "fbdev"
45-
Option "fbdev" "/dev/fb0"
48+
Driver "modesetting"
4649
EndSection
4750

4851
Section "Screen"

0 commit comments

Comments
 (0)