OSDN Git Service

libdrm/intel: execbuf2 support
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 15 Sep 2009 18:02:58 +0000 (11:02 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 2 Mar 2010 18:10:50 +0000 (10:10 -0800)
commitb50964027bef249a0cc3d511de05c2464e0a1e22
tree922ef89b71b606f50087e7a41d7efd799f473c0c
parent9a37455b35d746d694760cfe8850a8bf856d73c9
libdrm/intel: execbuf2 support

This patch to libdrm adds support for the new execbuf2 ioctl.  If
detected, it will be used instead of the old ioctl.  By using the new
drm_intel_bufmgr_gem_enable_fenced_relocs(), you can indicate that any
time a fence register is actually required for a relocation target you
will call drm_intel_bo_emit_reloc_fence instead of
drm_intel_bo_emit_reloc, which will reduce fence register pressure.

Signed-off-by: Eric Anholt <eric@anholt.net>
include/drm/i915_drm.h
intel/intel_bufmgr.c
intel/intel_bufmgr.h
intel/intel_bufmgr_gem.c
intel/intel_bufmgr_priv.h
intel/intel_chipset.h