1286ff7397
This adds handle->fd and fd->handle support to i915, this is to allow for offloading of rendering in one direction and outputs in the other. v2 from Daniel Vetter: - fixup conflicts with the prepare/finish gtt prep work. - implement ppgtt binding support. Note that we have squat i-g-t testcoverage for any of the lifetime and access rules dma_buf/prime support brings along. And there are quite a few intricate situations here. Also note that the integration with the existing code is a bit hackish, especially around get_gtt_pages and put_gtt_pages. It imo would be easier with the prep code from Chris Wilson's unbound series, but that is for 3.6. Also note that I didn't bother to put the new prepare/finish gtt hooks to good use by moving the dma_buf_map/unmap_attachment calls in there (like we've originally planned for). Last but not least this patch is only compile-tested, but I've changed very little compared to Dave Airlie's version. So there's a decent chance v2 on drm-next works as well as v1 on 3.4-rc. v3: Right when I've hit sent I've noticed that I've screwed up one obj->sg_list (for dmar support) and obj->sg_table (for prime support) disdinction. We should be able to merge these 2 paths, but that's material for another patch. v4: fix the error reporting bugs pointed out by ickle. v5: fix another error, and stop non-gtt mmaps on shared objects stop pread/pwrite on imported objects, add fake kmap Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
#
|
|
# Makefile for the drm device driver. This driver provides support for the
|
|
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
|
|
|
|
ccflags-y := -Iinclude/drm
|
|
i915-y := i915_drv.o i915_dma.o i915_irq.o \
|
|
i915_debugfs.o \
|
|
i915_suspend.o \
|
|
i915_gem.o \
|
|
i915_gem_debug.o \
|
|
i915_gem_evict.o \
|
|
i915_gem_execbuffer.o \
|
|
i915_gem_gtt.o \
|
|
i915_gem_stolen.o \
|
|
i915_gem_tiling.o \
|
|
i915_sysfs.o \
|
|
i915_trace_points.o \
|
|
intel_display.o \
|
|
intel_crt.o \
|
|
intel_lvds.o \
|
|
intel_bios.o \
|
|
intel_ddi.o \
|
|
intel_dp.o \
|
|
intel_hdmi.o \
|
|
intel_sdvo.o \
|
|
intel_modes.o \
|
|
intel_panel.o \
|
|
intel_pm.o \
|
|
intel_i2c.o \
|
|
intel_fb.o \
|
|
intel_tv.o \
|
|
intel_dvo.o \
|
|
intel_ringbuffer.o \
|
|
intel_overlay.o \
|
|
intel_sprite.o \
|
|
intel_opregion.o \
|
|
dvo_ch7xxx.o \
|
|
dvo_ch7017.o \
|
|
dvo_ivch.o \
|
|
dvo_tfp410.o \
|
|
dvo_sil164.o \
|
|
i915_gem_dmabuf.o
|
|
|
|
i915-$(CONFIG_COMPAT) += i915_ioc32.o
|
|
|
|
i915-$(CONFIG_ACPI) += intel_acpi.o
|
|
|
|
obj-$(CONFIG_DRM_I915) += i915.o
|
|
|
|
CFLAGS_i915_trace_points.o := -I$(src)
|