Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2014 20:49:07 +0200
From:      =?UTF-8?Q?Mika=C3=ABl_Urankar?= <mikael.urankar@gmail.com>
To:        =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= <dumbbell@freebsd.org>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: [CFT] i915: add HW context support (for Mesa 9.2+)
Message-ID:  <CAJwjRmSgUQVwfnoNHuemSSN4Ev3-5UwnE858s8Ss3_AeLvpwYA@mail.gmail.com>
In-Reply-To: <540C1CA8.603@FreeBSD.org>
References:  <540C1CA8.603@FreeBSD.org>

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

2014-09-07 10:51 GMT+02:00 Jean-Sébastien Pédron <dumbbell@freebsd.org>:
> Hello!
>
> Mesa 9.2+ requires "hardware context support" [1] in the i915 driver to
> work on Intel GPUs found in Sandy Bridge and later. Our driver lacks
> this feature, that's why we're stuck with Mesa 9.1 in the ports tree.
>
> If you have one of those GPUs and you try Mesa 10.2 for instance
> (available from the xorg-dev's experimental branch [2]), it will
> complain with the following message:
>
>   # glxinfo
>   name of display: :0.0
>   Gen6+ requires Kernel 3.6 or later.
>   Assertion failed: (ctx->Version > 0), (...)
>   Abort (core dumped)
>
> I prepared a patch to add this feature to our i915 driver; the goal is
> to have it in 10.1-RELEASE:
> https://wiki.freebsd.org/Graphics/Add%20HW%20context%20support%20to%20i915
>
> The article above explains how to test the patch. We're interested in
> success/failure reports for any GPU, not just Intel ones. So please test
> it! :)
>
> Thank you!
>
> [1]
> https://bwidawsk.net/blog/index.php/2013/01/i915-hardware-contexts-and-some-bits-about-batchbuffers/
> [2] https://wiki.freebsd.org/Graphics#experimental

Hi!

Thanks for your work!

I've tested on an AMD GPU (V4800) and it (still) works!
I don't think it's related to your work but I faced the following
issue: I needed to manually kldload radeonkms and various firmwares,
libdrm didn't automagically load them (I've compiled the packages with
these flags: WITH_GALLIUM=yes WITH_NEW_MESA=yes), is it a known issue?

I failed to get X working on a Intel Haswell Graphics 4xxx, is it
supposed to work?

If needed, logs of my system are at [1]

[1] http://mikael.urankar.free.fr/FreeBSD/CFT_drm_context/



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