]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
drm/i915: Add HW context support
authordumbbell <dumbbell@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Sep 2014 20:32:40 +0000 (20:32 +0000)
committerdumbbell <dumbbell@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Sep 2014 20:32:40 +0000 (20:32 +0000)
commit2898617254075bbe14cf1f2621d4589050a20e47
treecdf88fb9a0878567c28758edb9026a9b08489559
parentb76af560f363c896f5905ebef3481801f3c8fea3
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.

This an MFC of r271705.

Approved by: re (glebius)
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>,
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
16 files changed:
sys/dev/drm2/drm_gem_names.c
sys/dev/drm2/drm_gem_names.h
sys/dev/drm2/i915/i915_dma.c
sys/dev/drm2/i915/i915_drm.h
sys/dev/drm2/i915/i915_drv.c
sys/dev/drm2/i915/i915_drv.h
sys/dev/drm2/i915/i915_gem.c
sys/dev/drm2/i915/i915_gem_context.c [new file with mode: 0644]
sys/dev/drm2/i915/i915_gem_execbuffer.c
sys/dev/drm2/i915/i915_gem_gtt.c
sys/dev/drm2/i915/i915_irq.c
sys/dev/drm2/i915/i915_reg.h
sys/dev/drm2/i915/intel_ringbuffer.c
sys/dev/drm2/i915/intel_ringbuffer.h
sys/modules/drm2/i915kms/Makefile
sys/sys/param.h