2012-05-23 13:10:22 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2017-03-04 05:10:17 -05:00
|
|
|
.PATH: ${SRCTOP}/sys/dev/drm2/i915
|
2012-05-23 13:10:22 -04:00
|
|
|
KMOD = i915kms
|
|
|
|
|
SRCS = \
|
2016-03-08 15:33:02 -05:00
|
|
|
dvo_ch7017.c \
|
|
|
|
|
dvo_ch7xxx.c \
|
|
|
|
|
dvo_ivch.c \
|
|
|
|
|
dvo_ns2501.c \
|
|
|
|
|
dvo_sil164.c \
|
|
|
|
|
dvo_tfp410.c \
|
2012-05-23 13:10:22 -04:00
|
|
|
i915_debug.c \
|
|
|
|
|
i915_dma.c \
|
|
|
|
|
i915_drv.c \
|
|
|
|
|
i915_gem.c \
|
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 04:28:50 -04:00
|
|
|
i915_gem_context.c \
|
2012-05-23 13:10:22 -04:00
|
|
|
i915_gem_evict.c \
|
2016-03-08 15:33:02 -05:00
|
|
|
i915_gem_execbuffer.c \
|
2012-05-23 13:10:22 -04:00
|
|
|
i915_gem_gtt.c \
|
2015-01-21 11:10:37 -05:00
|
|
|
i915_gem_stolen.c \
|
2012-05-23 13:10:22 -04:00
|
|
|
i915_gem_tiling.c \
|
|
|
|
|
i915_irq.c \
|
|
|
|
|
i915_suspend.c \
|
2016-03-08 15:33:02 -05:00
|
|
|
intel_acpi.c \
|
2012-05-23 13:10:22 -04:00
|
|
|
intel_bios.c \
|
|
|
|
|
intel_crt.c \
|
2015-01-21 11:10:37 -05:00
|
|
|
intel_ddi.c \
|
2012-05-23 13:10:22 -04:00
|
|
|
intel_display.c \
|
|
|
|
|
intel_dp.c \
|
2016-03-08 15:33:02 -05:00
|
|
|
intel_dvo.c \
|
2012-05-23 13:10:22 -04:00
|
|
|
intel_fb.c \
|
|
|
|
|
intel_hdmi.c \
|
|
|
|
|
intel_iic.c \
|
|
|
|
|
intel_lvds.c \
|
|
|
|
|
intel_modes.c \
|
|
|
|
|
intel_opregion.c \
|
|
|
|
|
intel_overlay.c \
|
|
|
|
|
intel_panel.c \
|
2015-01-21 11:10:37 -05:00
|
|
|
intel_pm.c \
|
2012-05-23 13:10:22 -04:00
|
|
|
intel_ringbuffer.c \
|
|
|
|
|
intel_sdvo.c \
|
|
|
|
|
intel_sprite.c \
|
|
|
|
|
intel_tv.c
|
2012-08-18 14:26:25 -04:00
|
|
|
|
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
|
SRCS += i915_ioc32.c
|
|
|
|
|
.endif
|
|
|
|
|
|
2014-08-25 10:55:56 -04:00
|
|
|
SRCS += \
|
|
|
|
|
opt_acpi.h \
|
|
|
|
|
opt_compat.h \
|
|
|
|
|
opt_drm.h \
|
|
|
|
|
opt_syscons.h \
|
|
|
|
|
acpi_if.h \
|
|
|
|
|
bus_if.h \
|
|
|
|
|
fb_if.h \
|
|
|
|
|
device_if.h \
|
|
|
|
|
iicbb_if.h \
|
|
|
|
|
iicbus_if.h \
|
|
|
|
|
pci_if.h
|
2012-05-23 13:10:22 -04:00
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|
2013-12-28 17:35:16 -05:00
|
|
|
|
|
|
|
|
CWARNFLAGS.i915_debug.c= -Wno-unused-function
|
|
|
|
|
CWARNFLAGS.intel_lvds.c= -Wno-unused
|
|
|
|
|
CWARNFLAGS.intel_tv.c= -Wno-unused
|