summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-22 15:31:15 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-22 15:31:15 +0100
commit7dc0001f3db58af82f7e34c83a9fdb5fe90baccd (patch)
treebbfc35f4c6ca4423f90752b3ee34755b57d1af47 /lib/intel_batchbuffer.c
parenta8e8654f81380c19f7c90479f98b9d9314f638b3 (diff)
lib: make rendercopy.h an internal header
And move the public interfaces into intel_batchbuffer.[hc]. A bit messy since we are fairly inconsistent with our header #include handling. Also exclude rendercopy.h from the documentation. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/intel_batchbuffer.c')
-rw-r--r--lib/intel_batchbuffer.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index 195f1b29..df036013 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -37,6 +37,7 @@
#include "intel_bufmgr.h"
#include "intel_chipset.h"
#include "intel_reg.h"
+#include "rendercopy.h"
#include <i915_drm.h>
/**
@@ -384,3 +385,21 @@ intel_copy_bo(struct intel_batchbuffer *batch,
dst_bo, 0, 0, 4096,
4096/4, size/4096, 32);
}
+
+render_copyfunc_t get_render_copyfunc(int devid)
+{
+ render_copyfunc_t copy = NULL;
+
+ if (IS_GEN2(devid))
+ copy = gen2_render_copyfunc;
+ else if (IS_GEN3(devid))
+ copy = gen3_render_copyfunc;
+ else if (IS_GEN6(devid))
+ copy = gen6_render_copyfunc;
+ else if (IS_GEN7(devid))
+ copy = gen7_render_copyfunc;
+ else if (IS_GEN8(devid))
+ copy = gen8_render_copyfunc;
+
+ return copy;
+}