Jean-Sébastien Pédron 73547eeae9 drm/i915: Add HW context support
This feature is required by Mesa 9.2+. Without this, a GL application
crashes with the following message:
    # glxinfo
    name of display: :0.0
    Gen6+ requires Kernel 3.6 or later.
    Assertion failed: (ctx->Version > 0), function handle_first_current,
      file ../../src/mesa/main/context.c, line 1498.
    Abort (core dumped)

Now, Mesa 10.2.4 and 10.3-rc3 works fine:
    # glxinfo
    name of display: :0
    display: :0  screen: 0
    direct rendering: Yes
    ...
    OpenGL renderer string: Mesa DRI Intel(R) 965GM
    OpenGL version string: 2.1 Mesa 10.2.4
    ...

The code was imported from Linux 3.8.13.

Reviewed by:	kib@
Tested by:	kwm@, danfe@, Henry Hu,
		Lundberg, Johannes <johannes@brilliantservice.co.jp>,
		Johannes Dieterich <dieterich.joh@gmail.com>,
		Lutz Bichler <lutz.bichler@gmail.com>,
MFC after:	3 days
Relnotes:	yes
2014-09-17 08:28:50 +00:00
..
2010-08-23 06:13:29 +00:00
2014-07-07 00:27:09 +00:00
2011-01-06 21:04:00 +00:00
2011-01-06 21:04:00 +00:00
2010-08-23 06:13:29 +00:00
2010-08-23 06:13:29 +00:00
2011-12-30 21:22:10 +00:00
2012-08-15 06:31:32 +00:00
2010-08-23 06:13:29 +00:00
2010-10-13 14:44:38 +00:00
2014-09-17 08:28:50 +00:00
2013-06-04 06:38:01 +00:00
2010-09-16 09:29:48 +00:00
2010-08-23 06:13:29 +00:00
2010-08-23 06:13:29 +00:00
2014-07-07 00:27:09 +00:00
2014-05-20 19:55:06 +00:00
2010-08-23 06:13:29 +00:00
2013-08-03 08:21:35 +00:00
2014-08-28 00:05:02 +00:00
2010-08-23 06:13:29 +00:00
2010-08-23 06:13:29 +00:00
2010-08-23 06:13:29 +00:00
2012-03-30 23:05:48 +00:00
2012-08-15 04:03:55 +00:00
2012-04-21 01:51:16 +00:00
2013-03-03 16:17:09 +00:00
2010-05-19 14:50:07 +00:00
2012-05-01 07:38:40 +00:00
2010-08-23 06:13:29 +00:00
2012-11-08 01:35:02 +00:00
2012-02-11 08:34:33 +00:00
2014-07-07 00:27:09 +00:00
2010-08-23 06:13:29 +00:00
2010-08-15 15:33:01 +00:00
2010-04-26 17:03:56 +00:00
2010-04-20 21:29:53 +00:00
2010-08-23 06:13:29 +00:00
2010-10-13 14:44:38 +00:00
2012-06-25 09:46:06 +00:00
2010-08-13 04:00:35 +00:00
2014-07-26 17:59:25 +00:00
2012-06-03 12:19:16 +00:00
2012-01-17 18:20:34 +00:00