freebsd-dev/sys/dev/drm2
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
..
i915 drm/i915: Add HW context support 2014-09-17 08:28:50 +00:00
radeon drm/radeon: Fix a memory leak when radeonkms is unloaded 2014-08-28 12:40:31 +00:00
ttm drm: fix usage of vm_phys_fictitious_to_vm_page 2014-08-06 17:45:59 +00:00
ati_pcigart.c drm/radeon: Import the Radeon KMS driver 2013-08-25 19:37:15 +00:00
drm_agpsupport.c
drm_atomic.h Fix the incomplete conversion from atomic_t to long for test_bit(). 2013-08-29 20:51:12 +00:00
drm_auth.c
drm_buffer.c drm: Import drm_buffer.[ch] from Linux 3.8-rc3 2013-08-24 16:14:20 +00:00
drm_buffer.h drm: Import drm_buffer.[ch] from Linux 3.8-rc3 2013-08-24 16:14:20 +00:00
drm_bufs.c
drm_context.c Fix atomic operations on context_flag without altering semantics. 2013-08-29 18:36:47 +00:00
drm_core.h drm: Call drm_global_init() & drm_global_release() at module load/unload 2013-08-24 15:47:15 +00:00
drm_crtc_helper.c
drm_crtc_helper.h drm: Const'ify the 1st "drm_display_mode" passed to "mode_fixup" callbacks 2013-08-24 16:50:47 +00:00
drm_crtc.c drm: Initialize "handle" to 0 before calling drm_gem_handle_create() 2013-11-08 22:44:46 +00:00
drm_crtc.h drm: Const'ify the 1st "drm_display_mode" passed to "mode_fixup" callbacks 2013-08-24 16:50:47 +00:00
drm_dma.c
drm_dp_helper.c drm: Import drm_dp_helper.c from Linux 3.8-rc3 2013-08-24 23:38:57 +00:00
drm_dp_helper.h drm: Import drm_dp_helper.c from Linux 3.8-rc3 2013-08-24 23:38:57 +00:00
drm_dp_iic_helper.c Revert r268543. 2014-07-12 06:23:42 +00:00
drm_drawable.c
drm_drv.c Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
drm_edid_modes.h
drm_edid.c Revert r268543. 2014-07-12 06:23:42 +00:00
drm_edid.h
drm_fb_helper.c drm: Don't "taskqueue" vt-switch if under DDB/panic situation 2014-08-27 10:07:08 +00:00
drm_fb_helper.h
drm_fixed.h drm: Import drm_fixed.h from Linux 3.8 2013-08-25 12:27:15 +00:00
drm_fops.c
drm_fourcc.h
drm_gem_names.c drm/i915: Add HW context support 2014-09-17 08:28:50 +00:00
drm_gem_names.h drm/i915: Add HW context support 2014-09-17 08:28:50 +00:00
drm_gem.c drm: Use the new drm_atomic.h, following the merge of projects/atomic64 2013-08-25 15:38:16 +00:00
drm_global.c drm: Fix a call to free(9) with an incorrect malloc type 2013-03-08 18:11:02 +00:00
drm_global.h Import the drm_global references helpers. 2013-03-05 09:27:21 +00:00
drm_hashtab.c
drm_hashtab.h
drm_internal.h
drm_ioc32.c
drm_ioctl.c drm: Support DRM_CAP_TIMESTAMP_MONOTONIC capability 2013-11-17 16:07:52 +00:00
drm_irq.c Fix a compiler warning. With this fix, a negative time can be converted to 2013-08-28 22:57:49 +00:00
drm_linux_list_sort.c drm: Fix build with gcc, broken with r258549 2013-11-25 15:01:59 +00:00
drm_linux_list.h drm: Import list_for_each_entry_safe_from() macro 2013-08-25 10:28:02 +00:00
drm_lock.c
drm_memory.c
drm_mm.c Import the drm_mm_debug_table() function. 2013-03-05 09:07:58 +00:00
drm_mm.h Import the drm_mm_debug_table() function. 2013-03-05 09:07:58 +00:00
drm_mode.h
drm_modes.c
drm_os_freebsd.h Merge VT(9) project (a.k.a. newcons). 2013-12-05 22:38:53 +00:00
drm_pci.c Add missing calls to bus_dmamap_unload() when freeing static DMA 2014-06-13 18:20:44 +00:00
drm_pciids.h drm: Update drm_pciids.h based on Linux 3.8 2013-08-25 12:20:57 +00:00
drm_sarea.h Remove ia64. 2014-07-07 00:27:09 +00:00
drm_scatter.c Replace kernel virtual address space allocation with vmem. This provides 2013-08-07 06:21:20 +00:00
drm_sman.c
drm_sman.h
drm_stub.c
drm_sysctl.c Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
drm_vm.c
drm.h Remove ia64. 2014-07-07 00:27:09 +00:00
drmP.h Disable error message about failed attempt to attach fbd when drm2 built with 2013-12-10 15:53:00 +00:00