Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2012 22:02:25 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Meowthink <meowthink@gmail.com>
Cc:        freebsd-x11@freebsd.org, freebsd-emulation@freebsd.org
Subject:   Re: [CFT]Patch for dri / drm interoperability i386 world / amd64 kernel
Message-ID:  <20120818190225.GF33100@deviant.kiev.zoral.com.ua>
In-Reply-To: <CABnABoZKENJqcoQbkw6A0hJY_YY6Y0-FUM6GghtE%2Ba4wH7GwVA@mail.gmail.com>
References:  <CABnABoZKENJqcoQbkw6A0hJY_YY6Y0-FUM6GghtE%2Ba4wH7GwVA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--kR3zbvD4cgoYnS/6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Aug 11, 2012 at 09:25:09AM +0800, Meowthink wrote:
> Hello all,
>=20
> So long FreeBSD's DRI implementation lacks of i386/amd64
> interoperability, as discussed [0] [1]. This breaks wine, linuxulator
> etc. drawing using DRI-based OpenGL.
> Paul Mackerras et al. actually did that part for Linux implementation,
> so I simply translated their work to FreeBSD. Due to my poor
> programming skills, there's some limitations:
> 0. I tried to split compatible codes into separate files, like under
> Linux. But as a result of the difference between FreeBSD and Linux,
> the code is integrated in a  "#include ...ioc32.c" form which is not
> so elegant.
> 1. For same reason, struct drm_driver_info has to be changed.
I fixed 0 and 1 to my liking and committed the patch.

Thank you.

> 2. There should be some assertions if a 64-bit pointer failed to fit
> in a 32-bit space. Linux implementation didn't do this either, but
> they're guaranteed by user-space ioctl structures. This may result
> unstable under heavy load.
I am not sure what do you mean exactly. Can you elaborate, please ?

--kR3zbvD4cgoYnS/6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAlAv5ooACgkQC3+MBN1Mb4j2aQCgnBI9boW2+ygqqGhLWxo6bGez
wEkAoNMpSaL+HhERdVPu9onnB26/1Ne+
=67i6
-----END PGP SIGNATURE-----

--kR3zbvD4cgoYnS/6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120818190225.GF33100>