]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
drm/i915: Add HW context support
authordumbbell <dumbbell@FreeBSD.org>
Thu, 18 Sep 2014 20:32:40 +0000 (20:32 +0000)
committerdumbbell <dumbbell@FreeBSD.org>
Thu, 18 Sep 2014 20:32:40 +0000 (20:32 +0000)
commit58c7b08e2c4aed89b10a0d653f44f4fbbe29b2e8
treecdf88fb9a0878567c28758edb9026a9b08489559
parent98e396e70c506053493336e4b4d4258832b1e3f5
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
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