Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 323205 | Differences between
and this patch

Collapse All | Expand All

(-)xvmc.eselect.bak (-5 / +7 lines)
Lines 14-20 Link Here
14
"libchromeXvMC.so.1"
14
"libchromeXvMC.so.1"
15
"libviaXvMCPro.so.1"
15
"libviaXvMCPro.so.1"
16
"libchromeXvMCPro.so.1"
16
"libchromeXvMCPro.so.1"
17
"libI810XvMC.so.1" )
17
"libI810XvMC.so.1"
18
"libIntelXvMC.so.1" )
18
XVMCPRETTY=(
19
XVMCPRETTY=(
19
"nvidia"
20
"nvidia"
20
"xorg-x11"
21
"xorg-x11"
Lines 22-28 Link Here
22
"openchrome"
23
"openchrome"
23
"via-pro"
24
"via-pro"
24
"openchrome-pro"
25
"openchrome-pro"
25
"intel" )
26
"intel-i810"
27
"intel-i915" )
26
28
27
get_implementation_indices() {
29
get_implementation_indices() {
28
	local ret n
30
	local ret n
Lines 36-42 Link Here
36
get_current_implementation_index() {
38
get_current_implementation_index() {
37
	local n
39
	local n
38
	if [[ -f "${ROOT}/etc/X11/XvMCConfig" ]]; then
40
	if [[ -f "${ROOT}/etc/X11/XvMCConfig" ]]; then
39
		local current=$(< "${ROOT}/etc/X11/XvMCConfig")
41
		local current=$(basename $(< "${ROOT}/etc/X11/XvMCConfig"))
40
		for (( n = 0; n < ${#XVMCLIBS[@]}; ++n )); do
42
		for (( n = 0; n < ${#XVMCLIBS[@]}; ++n )); do
41
			if [[ "${XVMCLIBS[n]}" = "${current}" ]]; then
43
			if [[ "${XVMCLIBS[n]}" = "${current}" ]]; then
42
				echo "${n}"
44
				echo "${n}"
Lines 50-58 Link Here
50
52
51
set_new_implementation() {
53
set_new_implementation() {
52
	echo -n "Switching to ${XVMCPRETTY[$1]} XvMC implementation..."
54
	echo -n "Switching to ${XVMCPRETTY[$1]} XvMC implementation..."
53
	touch "${ROOT}/etc/X11/XvMCConfig" 2&>1 > /dev/null
55
	touch "${ROOT}/etc/X11/XvMCConfig" 2>&1 > /dev/null
54
	if [[ $? -eq 0 ]]; then
56
	if [[ $? -eq 0 ]]; then
55
		echo "${XVMCLIBS[$1]}" > "${ROOT}/etc/X11/XvMCConfig"
57
		echo "${ROOT}/usr/lib/${XVMCLIBS[$1]}" > "${ROOT}/etc/X11/XvMCConfig"
56
		chmod 644 "${ROOT}/etc/X11/XvMCConfig"
58
		chmod 644 "${ROOT}/etc/X11/XvMCConfig"
57
		chown 0:0 "${ROOT}/etc/X11/XvMCConfig"
59
		chown 0:0 "${ROOT}/etc/X11/XvMCConfig"
58
		echo " done"
60
		echo " done"

Return to bug 323205