Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 289875 Details for
Bug 366397
>=ati-drivers-11.4 should support powerXpress
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Faster implementation of switchlibGL
switchlibGL (text/plain), 1.39 KB, created by
Jan Breuer
on 2011-10-15 13:44:47 UTC
(
hide
)
Description:
Faster implementation of switchlibGL
Filename:
MIME Type:
Creator:
Jan Breuer
Created:
2011-10-15 13:44:47 UTC
Size:
1.39 KB
patch
obsolete
>#!/bin/bash ># switchlibGL ># ># Copyright (c) 2011 Advanced Micro Devices, Inc. ># ># Purpose: ># For switch between AMD and Intel graphic driver library. ># ># Usage: ># switchlibGL amd|intel|query ># amd: switches to the AMD version of libGL. ># intel: switches to the open-source version of libGL . ># query: checks, which version is currently active and prints either "amd" ># or "intel" or "unknown" on the standard output. ># must be root to execute this script > >ARCH=`uname -m` >E_ERR=1 > ># Check if root >if [ "`whoami`" != "root" ]; then > echo "Must be root to run this script." 1>&2 > exit $E_ERR >fi > ># One parameter >if [ $# -ne 1 ]; then > echo "Usage: `basename $0` amd|intel|query " 1>&2 > echo "Please choose one parameter " 1>&2 > exit $E_ERR >fi > > >current=`eselect opengl show` > ># Switch to right mode >case "$1" in > "amd" ) > case "$current" in > "xorg-x11" ) > eselect opengl set ati > ;; > esac > ;; > "intel" ) > case "$current" in > "ati" ) > eselect opengl set xorg-x11 > ;; > esac > ;; > "query" ) > case "$current" in > "ati" ) > echo "amd" > ;; > "xorg-x11" ) > echo "intel" > ;; > esac > ;; > * ) echo "Usage: `basename $0` amd|intel|query" 1>&2; exit $E_ERR;; > # other than amd|intel|query parameter report an error >esac > ># A zero return value from the script upon exit indicates success. >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 366397
:
272435
| 289875