diff options
author | dec05eba <dec05eba®protonmail.com> | 2023-04-14 09:36:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-04-15 19:06:08 +0200 |
commit | f6107a0c5d41aa9fbaa41d64e2f6a5681f9237cc (patch) | |
tree | 8fae2bf69dd325d1da0ab1e475a58f32435768cf /build.sh | |
parent | 5c714ea7142272b7b95b95019501df1d49691db1 (diff) |
Fix AMD single monitor rotated display being rotated in recording
If there is only one monitor connected and it's rotated then
the drm buf will also be rotated. This only the case with AMD and
only when using one monitor!
To fix this, we perform color conversion with an opengl shader
which allows us to also rotate the texture.
VAAPI supports rotation but it's not implemented by AMD at least.
Performance seems to be the same as when using VAAPI, even when
GPU usage is 100%.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -25,11 +25,13 @@ build_gsr() { gcc -c src/xnvctrl.c $opts $includes gcc -c src/overclock.c $opts $includes gcc -c src/window_texture.c $opts $includes + gcc -c src/shader.c $opts $includes + gcc -c src/color_conversion.c $opts $includes gcc -c src/utils.c $opts $includes gcc -c src/library_loader.c $opts $includes g++ -c src/sound.cpp $opts $includes g++ -c src/main.cpp $opts $includes - g++ -o gpu-screen-recorder -O2 capture.o nvfbc.o kms_client.o egl.o cuda.o xnvctrl.o overclock.o window_texture.o utils.o library_loader.o xcomposite_cuda.o xcomposite_vaapi.o kms_vaapi.o sound.o main.o -s $libs + g++ -o gpu-screen-recorder -O2 capture.o nvfbc.o kms_client.o egl.o cuda.o xnvctrl.o overclock.o window_texture.o shader.o color_conversion.o utils.o library_loader.o xcomposite_cuda.o xcomposite_vaapi.o kms_vaapi.o sound.o main.o -s $libs } build_gsr_kms_server |