Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2017 22:06:42 +0300
From:      Arto Pekkanen <isoa@kapsi.fi>
To:        freebsd-x11@freebsd.org
Subject:   Re: Hardware acceleration broken for AMD Norther Islands cards?
Message-ID:  <cbd45e89-1bd6-967f-e1fc-9a5214f071f0@kapsi.fi>
In-Reply-To: <20170420184951.GA4950@FreeBSD.org>
References:  <20170420184951.GA4950@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--u3eVs9o3pBjm58RIx2aDE08hKo5g3poxn
Content-Type: multipart/mixed; boundary="hqvXX5U2iKEq80iBsbmATr45e6XABRDWv";
 protected-headers="v1"
From: Arto Pekkanen <isoa@kapsi.fi>
To: freebsd-x11@freebsd.org
Message-ID: <cbd45e89-1bd6-967f-e1fc-9a5214f071f0@kapsi.fi>
Subject: Re: Hardware acceleration broken for AMD Norther Islands cards?
References: <20170420184951.GA4950@FreeBSD.org>
In-Reply-To: <20170420184951.GA4950@FreeBSD.org>

--hqvXX5U2iKEq80iBsbmATr45e6XABRDWv
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

I don't know why mesa fails to recognize the dri driver based on this
info alone, but I do know that the reason why glxinfo reports 16G
graphics memory is because, in case it cannot initialize hardware
acceleration, libGL defaults to using the software renderer which uses
system RAM for buffers.

I am not a specialist in regards to the graphics subsystem, but to make
even an uneducated guess the following information is required:
- dmesg
- pciconf -lbev
- /var/log/Xorg.0.log
- your X.org configuration file, if any

There was also some specific sysctls that can be enabled to produce more
DRI/KMS debug information into dmesg, but I just cannot remember which
ones they were ... and they might have changed since the last time I had
to do any configuration on the graphics.

On 20.4.2017 21:49, Alexey Dokuchaev wrote:
> Hi there,
>=20
> Today I've updated my X.org/Mesa stack to the latest in ports.  Apart f=
rom
> now having to do `kldload radeonkms' by hand before startx(1), it seems=
 that
> hw accell is broken: `games/cake' and `games/quake2lnx' in GLX mode are=
 now
> capped by ~15 fps, and emit the following messages on startup:
>=20
>   MESA-LOADER: failed to retrieve device information
>   unknown chip id 0x990d, can't guess.			<--- ???
>   libGL error: failed to create dri screen
>   libGL error: failed to load driver: radeon
>=20
> $ glxinfo -B (trimmed)
>=20
> [ same messages as above ]
> direct rendering: Yes
> Extended renderer info (GLX_MESA_query_renderer):
>     Vendor: VMware, Inc. (0xffffffff)
>     Device: llvmpipe (LLVM 4.0, 128 bits) (0xffffffff)
>     Version: 17.0.3
>     Accelerated: no			<--- :-(
>     Video memory: 16384MB		<--- that's my total RAM amount
>     Unified memory: no
>     Preferred profile: core (0x1)
>     Max core profile version: 3.3
>     Max compat profile version: 3.0
>     Max GLES1 profile version: 1.1
>     Max GLES[23] profile version: 3.0
> OpenGL vendor string: VMware, Inc.
> OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 4.0, 128 bits)
>                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>=20
> Any ideas why the correct driver is no longer loaded?  Previous output
> (when things were working):
>=20
>     Vendor: X.Org (0x1002)
>     Device: AMD ARUBA (DRM 2.29.0, LLVM 3.7.1) (0x990d)	<--- now unknow=
n id
>     Version: 11.2.2
>     Accelerated: yes			<--- :-)
>     Video memory: 768MB			<--- looks more sane
>     [ unchanged lines snipped ]
> OpenGL vendor string: X.Org
> OpenGL renderer string: Gallium 0.4 on AMD ARUBA (DRM 2.29.0, LLVM 3.7.=
1)
>                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^=
^
>=20
> (xf86-video-ati-7.9.0,1 package installed, user is in `video' group, mo=
st
> or all graphics-related ports were purged and reinstalled against the n=
ew
> X.org/Mesa bits.)
>=20
> ./danfe
> _______________________________________________
> freebsd-x11@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"
>=20

--=20
Arto Pekkanen


--hqvXX5U2iKEq80iBsbmATr45e6XABRDWv--

--u3eVs9o3pBjm58RIx2aDE08hKo5g3poxn
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF4EAREIAAYFAlj5BsUACgkQTBivhqtJa270+gD/cRjHMtH4+NXPlWYHqpw040eT
bGi42uPjgn5q+Au2Qu0A/RXT52kxIpim+zCkkgjIA+KEGIh+13jgaL/vJNwqQvcU
=FlRp
-----END PGP SIGNATURE-----

--u3eVs9o3pBjm58RIx2aDE08hKo5g3poxn--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cbd45e89-1bd6-967f-e1fc-9a5214f071f0>