summaryrefslogtreecommitdiff
path: root/x11-misc/nvidia-prime
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/nvidia-prime')
-rw-r--r--x11-misc/nvidia-prime/files/nvidia-prime.conf4
-rw-r--r--x11-misc/nvidia-prime/files/prime-run2
-rw-r--r--x11-misc/nvidia-prime/nvidia-prime-314.ebuild24
3 files changed, 30 insertions, 0 deletions
diff --git a/x11-misc/nvidia-prime/files/nvidia-prime.conf b/x11-misc/nvidia-prime/files/nvidia-prime.conf
new file mode 100644
index 00000000..71b45ddf
--- /dev/null
+++ b/x11-misc/nvidia-prime/files/nvidia-prime.conf
@@ -0,0 +1,4 @@
+Section "ServerLayout"
+ Identifier "layout"
+ Option "AllowNVIDIAGPUScreens"
+EndSection
diff --git a/x11-misc/nvidia-prime/files/prime-run b/x11-misc/nvidia-prime/files/prime-run
new file mode 100644
index 00000000..59d01de2
--- /dev/null
+++ b/x11-misc/nvidia-prime/files/prime-run
@@ -0,0 +1,2 @@
+#!/bin/bash
+__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"
diff --git a/x11-misc/nvidia-prime/nvidia-prime-314.ebuild b/x11-misc/nvidia-prime/nvidia-prime-314.ebuild
new file mode 100644
index 00000000..8eccbb06
--- /dev/null
+++ b/x11-misc/nvidia-prime/nvidia-prime-314.ebuild
@@ -0,0 +1,24 @@
+# Copyright 2016-2020 Redcore Linux Project
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=7
+
+DESCRIPTION="NVIDIA Prime Render Offload configuration and utilities"
+HOMEPAGE="https://redcorelinux.org"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE=""
+
+RDEPEND=""
+
+S="${FILESDIR}"
+
+src_install() {
+ dobin prime-run
+ insinto /usr/share/X11/xorg.conf.d
+ newins nvidia-prime.conf 50-nvidia-prime.conf
+}