add libvncserver

This commit is contained in:
joborun linux 2023-01-15 23:30:02 +02:00
parent 30b46a96af
commit b156573a43
6 changed files with 128 additions and 0 deletions

37
libvncserver/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libvncserver
pkgver=0.9.14
pkgrel=02
pkgdesc="Cross-platform C libraries that allow you to easily implement VNC server or client functionality w/o systemd"
arch=('x86_64')
url="https://libvnc.github.io/"
depends=('gnutls' 'libgcrypt' 'libjpeg' 'libpng' 'lzo' 'openssl')
makedepends=('sdl2' 'cmake')
source=("https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${pkgver}.tar.gz")
build() {
cd $pkgname-LibVNCServer-$pkgver
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_LIBEXECDIR=/usr/libexec \
-DWITH_SYSTEMD=OFF
make
}
package() {
cd $pkgname-LibVNCServer-$pkgver
make DESTDIR="$pkgdir" install
}
#---- license gpg-key sha256sums ----
license=('GPL')
sha256sums=(83104e4f7e28b02f8bf6b010d69b626fae591f887e949816305daebae527c9a5) # LibVNCServer-0.9.14.tar.gz

View File

@ -0,0 +1,26 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=libvncserver
pkgver=0.9.14
pkgrel=2
pkgdesc="Cross-platform C libraries that allow you to easily implement VNC server or client functionality"
arch=('x86_64')
url="https://libvnc.github.io/"
license=('GPL')
depends=('gnutls' 'libgcrypt' 'libjpeg' 'libpng' 'lzo' 'openssl')
makedepends=('sdl2' 'cmake')
source=("https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${pkgver}.tar.gz")
sha256sums=('83104e4f7e28b02f8bf6b010d69b626fae591f887e949816305daebae527c9a5')
build() {
cd $pkgname-LibVNCServer-$pkgver
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
}
package() {
cd $pkgname-LibVNCServer-$pkgver
make DESTDIR="$pkgdir" install
}

1
libvncserver/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,libVNS*tar.gz}

6
libvncserver/deps Normal file
View File

@ -0,0 +1,6 @@
libjpeg-turbo
libpng
lzo
sdl2
cmake

6
libvncserver/time Normal file
View File

@ -0,0 +1,6 @@
real 0m26.121s
user 0m22.053s
sys 0m3.206s

View File

@ -0,0 +1,52 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date: Sun, 12 Jun 2022 23:59:05 +0300
Subject: [PATCH] anv: force MEDIA_INTERFACE_DESCRIPTOR_LOAD reemit after
3D->GPGPU switch
Seems to fix a hang in the following titles :
- Age of Empire 4
- Monster Hunter Rise
where the HW is hung on a PIPE_CONTROL after a GPGPU_WALKER but no
MEDIA_INTERFACE_DESCRIPTOR_LOAD was emitted since the switch from 3D
to GPGPU.
This would happen in the following case :
vkCmdBindPipeline(COMPUTE, cs_pipeline);
vkCmdDispatch(...);
vkCmdBindPipeline(GRAPHICS, gfx_pipeline);
vkCmdDraw(...);
vkCmdDispatch(...);
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
---
src/intel/vulkan/genX_cmd_buffer.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index 17629fb7ac87..1651c29d9ebd 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -6003,6 +6003,20 @@ genX(flush_pipeline_select)(struct anv_cmd_buffer *cmd_buffer,
}
#endif
+#if GFX_VERx10 == 120
+ /* Undocumented workaround to force the re-emission of
+ * MEDIA_INTERFACE_DESCRIPTOR_LOAD when switching from 3D to Compute
+ * pipeline without rebinding a pipeline :
+ * vkCmdBindPipeline(COMPUTE, cs_pipeline);
+ * vkCmdDispatch(...);
+ * vkCmdBindPipeline(GRAPHICS, gfx_pipeline);
+ * vkCmdDraw(...);
+ * vkCmdDispatch(...);
+ */
+ if (pipeline == _3D)
+ cmd_buffer->state.compute.pipeline_dirty = true;
+#endif
+
/* From "BXML » GT » MI » vol1a GPU Overview » [Instruction]
* PIPELINE_SELECT [DevBWR+]":
*