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>
This commit is contained in:
Daniel Vetter
2014-03-22 15:31:15 +01:00
parent a8e8654f81
commit 7dc0001f3d
22 changed files with 255 additions and 111 deletions
+19
View File
@@ -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;
}