LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware current xorg 1.16.4 have --enable-glamour ? (https://www.linuxquestions.org/questions/slackware-14/slackware-current-xorg-1-16-4-have-enable-glamour-4175547644/)

USUARIONUEVO 07-09-2015 06:30 PM

slackware current xorg 1.16.4 have --enable-glamour ?
 
I have several problems with r9 290x crossfire , and try options to find solution

recompiling mesa , libdrm , llvm , recompiling radeon driver , no such effect


but now see the source of xorg package y see the config no have enable glamour .. need by some latest amd cards.


Is this correct ?
Not enabled ?

Here de slackbuild config ... no enabled glamour


http://slackware.mirrors.tds.net/pub...re/xorg-server


why ?
or im confused ?


_______________________________________

Info added ..im not confused NO HAVE EXPLICIT ENABLED GLAMOR

stock config taken to current ftp

http://oi59.tinypic.com/29z90n7.jpg


afetr add --enable-glamor to xorg config

http://oi61.tinypic.com/16m2hr5.jpg


At last point , think need recompile xf86-video-ati , por add --enable-glamor to config

i cant test now , i test this some hours later.

ReaperX7 07-10-2015 01:23 AM

Currently glamor acceleration in some chipsets is still problematic and the library changed from libglamor to libepoxy. By next update we should probably see some changes, but if you need glamor, SBo has libepoxy and x can be rebuild with support for it easily, and I have some experimental mesa drivers in SlackWorks also.

USUARIONUEVO 07-10-2015 01:52 AM

i have now , all stock drivers Works , ... and only radeon driver have glamor enabled.

archlinux enable glamor
https://projects.archlinux.org/svnto...xf86-video-ati

Linux from scratch
http://www.linuxfromscratch.org/blfs.../x7driver.html

Note
Glamor is required for "Southern Islands and later GPUs"
but optional for R300 to R700, Evergreen and "Northern Islands" GPUs - see the link in the section called Glamor Acceleration below.


my crossfire are hawaii chipsets and need glamor....is the only way to run 4.x kernels for me...im runing now Linux 4.1.1 ..


without glamor i can run mximum 3.18 kernels.

fskmh 07-10-2015 05:22 AM

Looks like it's enabled by default:
Code:

x11-1.16/src/driver/xf86-video-ati-7.5.0> ./configure --help
...
...
...
 --disable-glamor        Disable glamor, a new GL-based acceleration
                          [default=enabled
...
...
...

My laptop has an old HD 2600 and here's what I get:
Code:

grep -i glamor /var/log/Xorg.0.log 
[    15.545] (II) LoadModule: "glamoregl"
[    15.550] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[    15.566] (II) Module glamoregl: vendor="X.Org Foundation"

FWIW I explicitly enabled glamor in /etc/X11/xorg.conf but I believe it can also be enabled via /usr/share/X11/xorg.conf.d/glamor.conf:
Code:

Section "Module"
        Load  "dri2"
        Load  "glamoregl"
EndSection


USUARIONUEVO 07-11-2015 02:05 PM

you have

glamoregl

because package gablor-egl

but xorg , is compiled without glamor support , then radeon CAN`T USE

________________

more info:

I have a crossfire r9 290x , when unplug one of the cards , the system can boot , kernles 4.x included.

But when plug the two cards , slackware cant boot using 4.X kernels ... only recompiling xorg with

--enable-glamor

solved my problem.


At the moment im waiting for some xorg oficial upgrade on current slackware.
With current packages cant boot kernels 4.x in crossfire.

Didier Spaier 07-11-2015 02:19 PM

Yes you can modify /source/x/x11/configure/xorg-server adding the option --enable-glamor under BUILD_SERVERS=, rebuild and replace the X server (I am not 100 sure that be the good place to put it though, maybe someone checks).

EDIT: USUARIONUEVO, I see that you already did that, where did you add that option?

This doesn't seem to be enough with some chipsets though, see the end of this thread.

ReaperX7 07-11-2015 04:43 PM

Some devices work with glamor acceleration, but others still require exa acceleration which is the default. Nouveau got glamor specifically for Nvidia Maxwell, but no other chipsets can use it yet on the Nvidia lineup.

USUARIONUEVO 07-11-2015 05:37 PM

Yes , other user with same black screen on crossfire :)


How recompile xorg?


I download same version as a current 1.16.4
http://www.x.org/releases/individual...1.16.4.tar.bz2


uncompress the tar.bz2 file


After this i download
http://mirrors.dotsrc.org/slackware/...re/xorg-server


and add --enable-glamor after the configure action


./configure \
--prefix=/usr \
Code:

--enable-glamor \


How only need recompile that , i modify the configure file to little script ...its the same only added $ARCH , and --enable-glamor


make and empty text file to create config-script


Code:

#!/bin/bash

  ARCH=$1
  if [ -z "$ARCH" ]; then
    case "$( uname -m )" in
      i?86) export ARCH=i486 ;;
      arm*) export ARCH=arm ;;
        *) export ARCH=$( uname -m ) ;;
    esac
  fi

  if [ "$ARCH" = "i486" ]; then
    SLKCFLAGS="-O2 -march=i486 -mtune=i686"
    LIBDIRSUFFIX=""
  elif [ "$ARCH" = "i686" ]; then
    SLKCFLAGS="-O2 -march=i686 -mtune=i686"
    LIBDIRSUFFIX=""
  else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
  fi

  set -e

# Servers to build:
BUILD_SERVERS="--enable-xorg \
  --enable-dmx \
  --enable-xvfb \
  --enable-xnest \
  --enable-kdrive \
  --enable-xephyr \
  --enable-xfbdev \
  --enable-config-udev \
  --enable-kdrive-evdev \
  --enable-kdrive-kbd \
  --enable-kdrive-mouse \
  --disable-config-hal"

#MESA_VERSION=${MESA_VERSION:-7.5}        # unused in 1.7+

# Default font paths to be used by the X server
DEF_FONTPATH="/usr/share/fonts/local,/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/CID,/usr/share/fonts/75dpi/:unscaled,/usr/share/fonts/100dpi/:unscaled,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/cyrillic"

# Reconf (don't remove this plz):
autoreconf -vif

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --enable-glamor \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --infodir=/usr/info \
  --mandir=/usr/man \
  --disable-static \
  --with-pic \
  --enable-suid-wrapper \
  --with-int10=x86emu \
  --with-default-font-path="${DEF_FONTPATH}" \
  --with-module-dir=/usr/lib${LIBDIRSUFFIX}/xorg/modules \
  --with-os-name="Slackware 14.2" \
  --with-os-vendor="Slackware Linux Project" \
  --with-xkb-path=/etc/X11/xkb \
  --with-xkb-output=/var/lib/xkb \
  $BUILD_SERVERS \
  --build=$ARCH-slackware-linux

#  --with-dri-driver-path=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri

if [ "$ARCH" = "x86_64" ]; then
  # To prevent the error "No rule to make target `-ldl'"
  sed -i -e 's#-ldl##' hw/xfree86/Makefile
  sed -i -e 's#-lm#-lm -ldl#' hw/xfree86/Makefile
fi

execute the script inside decompressed xorg .tar file , put script inside ande execute

this action only "configure" ..afetr that

make
make install



if configuration say need libepoxy , can build using slackbuild org , make libepoxy install and retry configure.
http://slackbuilds.org/repository/14...earch=libepoxy



If someone get black screen on amd card , can try this.



_____ 2nd time i put this _________

see on linux from scratch ... xorg-server compilation say RECOMENDED enable glamor , for newest AMD CARDS




Xorg ATI Driver Dependencies

Required

Xorg-Server-1.17.2 (recommended to be built with glamor enabled)

[Note] Note
Glamor is required for "Southern Islands" and later GPUs but optional for R300 to R700, Evergreen and "Northern Islands" GPUs - see the link in the section called Glamor Acceleration below.

http://www.linuxfromscratch.org/blfs.../x7driver.html

allend 07-11-2015 08:04 PM

Your technique seems unnecessarily complicated.
It would have been easier to simply add the required configure option to x/x11/configure/xorg-server in the source tree and then, from x/x11/x11.Slackbuild
Code:

# To build only a single package group, specify it as $1, like:
# ./x11.SlackBuild lib
# To build only a single package, specify both the source directory
# and the name of the package, like:
# ./x11.SlackBuild lib libX11

# Upgrade packages as they are built.
# Default is to upgrade new packages (UPGRADE_PACKAGES=yes).
# To install ALL newly built packages (even if they are already installed),
# use UPGRADE_PACKAGES=always
# To not upgrade, pass UPGRADE_PACKAGES=no


Pednick 07-11-2015 08:05 PM

I'll try what you said in post #8.

Quote:

Originally Posted by USUARIONUEVO (Post 5390156)
you have

glamoregl

because package gablor-egl

but xorg , is compiled without glamor support , then radeon CAN`T USE

________________

more info:

I have a crossfire r9 290x , when unplug one of the cards , the system can boot , kernles 4.x included.

But when plug the two cards , slackware cant boot using 4.X kernels ... only recompiling xorg with

--enable-glamor

solved my problem.


At the moment im waiting for some xorg oficial upgrade on current slackware.
With current packages cant boot kernels 4.x in crossfire.


ReaperX7 07-12-2015 07:15 AM

x11.SlackBuild can effectively rebuild all parts of X. If you edit the configurations, you can add support for non-general stuff like glamour support.

Yes, you will need libepoxy, and there is a build on SBo of it. The older glamoregl is for older X11 setups and is deprecated.

If you need to grab any sources of Slackware, use the FTP clients provided with Slackware like gFTP and clone a copy.

Pednick 07-12-2015 10:48 AM

Thank you very much USUARIONUEVO, that did the trick, it works now.

There are just a few glitches, some programs don't seem to run, I got these errors:

glxinfo

bash-4.3$ glxinfo
name of display: :0
couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable

glxgears

couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 148 ()
Minor opcode of failed request: 4
Serial number of failed request: 37
Current serial number in output stream: 37

firefox won't show when activated

Other things like videos run fine even in vdpau.

Quote:

Originally Posted by USUARIONUEVO (Post 5390201)
Yes , other user with same black screen on crossfire :)


How recompile xorg?


I download same version as a current 1.16.4
http://www.x.org/releases/individual...1.16.4.tar.bz2


uncompress the tar.bz2 file


After this i download
http://mirrors.dotsrc.org/slackware/...re/xorg-server


and add --enable-glamor after the configure action


./configure \
--prefix=/usr \
Code:

--enable-glamor \


How only need recompile that , i modify the configure file to little script ...its the same only added $ARCH , and --enable-glamor


make and empty text file to create config-script


Code:

#!/bin/bash

  ARCH=$1
  if [ -z "$ARCH" ]; then
    case "$( uname -m )" in
      i?86) export ARCH=i486 ;;
      arm*) export ARCH=arm ;;
        *) export ARCH=$( uname -m ) ;;
    esac
  fi

  if [ "$ARCH" = "i486" ]; then
    SLKCFLAGS="-O2 -march=i486 -mtune=i686"
    LIBDIRSUFFIX=""
  elif [ "$ARCH" = "i686" ]; then
    SLKCFLAGS="-O2 -march=i686 -mtune=i686"
    LIBDIRSUFFIX=""
  else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
  fi

  set -e

# Servers to build:
BUILD_SERVERS="--enable-xorg \
  --enable-dmx \
  --enable-xvfb \
  --enable-xnest \
  --enable-kdrive \
  --enable-xephyr \
  --enable-xfbdev \
  --enable-config-udev \
  --enable-kdrive-evdev \
  --enable-kdrive-kbd \
  --enable-kdrive-mouse \
  --disable-config-hal"

#MESA_VERSION=${MESA_VERSION:-7.5}        # unused in 1.7+

# Default font paths to be used by the X server
DEF_FONTPATH="/usr/share/fonts/local,/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/CID,/usr/share/fonts/75dpi/:unscaled,/usr/share/fonts/100dpi/:unscaled,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/cyrillic"

# Reconf (don't remove this plz):
autoreconf -vif

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --enable-glamor \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --infodir=/usr/info \
  --mandir=/usr/man \
  --disable-static \
  --with-pic \
  --enable-suid-wrapper \
  --with-int10=x86emu \
  --with-default-font-path="${DEF_FONTPATH}" \
  --with-module-dir=/usr/lib${LIBDIRSUFFIX}/xorg/modules \
  --with-os-name="Slackware 14.2" \
  --with-os-vendor="Slackware Linux Project" \
  --with-xkb-path=/etc/X11/xkb \
  --with-xkb-output=/var/lib/xkb \
  $BUILD_SERVERS \
  --build=$ARCH-slackware-linux

#  --with-dri-driver-path=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri

if [ "$ARCH" = "x86_64" ]; then
  # To prevent the error "No rule to make target `-ldl'"
  sed -i -e 's#-ldl##' hw/xfree86/Makefile
  sed -i -e 's#-lm#-lm -ldl#' hw/xfree86/Makefile
fi

execute the script inside decompressed xorg .tar file , put script inside ande execute

this action only "configure" ..afetr that

make
make install



if configuration say need libepoxy , can build using slackbuild org , make libepoxy install and retry configure.
http://slackbuilds.org/repository/14...earch=libepoxy



If someone get black screen on amd card , can try this.



_____ 2nd time i put this _________

see on linux from scratch ... xorg-server compilation say RECOMENDED enable glamor , for newest AMD CARDS




Xorg ATI Driver Dependencies

Required

Xorg-Server-1.17.2 (recommended to be built with glamor enabled)

[Note] Note
Glamor is required for "Southern Islands" and later GPUs but optional for R300 to R700, Evergreen and "Northern Islands" GPUs - see the link in the section called Glamor Acceleration below.

http://www.linuxfromscratch.org/blfs.../x7driver.html


ReaperX7 07-12-2015 11:32 AM

libtxc_dxtn can be found on Slackbuilds.org, but it should not be required. It is always optional.

Also, be advised that using LFS techniques on Slackware is NOT recommended. LFS is good if you want to get some buildtime references, but do NOT mix the packaging techniques together... EVER.

Had you used x11.SlackBuild with reference xorg-server/xorg-server would have landed you a glamor enabled package that is compliant to pkgtools. Using make and make install on source packages is not recommended with Slackware because packages installed with this can not be upgraded or removed with pkgtools.

Pednick 07-12-2015 11:33 AM

Quote:

Originally Posted by ReaperX7 (Post 5390485)
libtxc_dxtn can be found on Slackbuilds.org, but it should not be required.

Yeah, that's what I was thinking.

USUARIONUEVO 07-12-2015 01:22 PM

yea , think around that


why LINUX FROM SCRATCH say need glamor ?
why ARCHLINUX , compile xorg-server with glamor ?
why DEBIAN , compile xorg with glamor ?



all developers compile enabling glamor , IS NEDEED for HAWAII CARDS ... 290/290X


But no problem , I post temporally solution only that.

when make install , ... inateller OVERWRITE , original xorg-server , but not NO REMOVE , de /log/package

Then if appears a for example xorg-server-1.16.4-i486-2

you can try safe , upgradepkg xorg-server TO TEST NEW PACKAGE.

In this case , im not MIXING NOTHING , because USING DE CONFIG-SERVER file of slackware, and only edit to add enable-glamor


No paths changed , and no other modification , only add a feature.

Drivers , NO NEED RECOMPILED , then drivers are same , only xorg-server . now have ability to work with glamor IF DRIVER NEED.


All times are GMT -5. The time now is 01:15 PM.