summaryrefslogtreecommitdiff
path: root/lib/media_fill.h
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/media_fill.h
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/media_fill.h')
-rw-r--r--lib/media_fill.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/media_fill.h b/lib/media_fill.h
index 719eb54a..9115776a 100644
--- a/lib/media_fill.h
+++ b/lib/media_fill.h
@@ -19,26 +19,6 @@
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
-struct scratch_buf {
- drm_intel_bo *bo;
- uint32_t stride;
- uint32_t tiling;
- uint32_t *data;
- uint32_t *cpu_mapping;
- uint32_t size;
- unsigned num_tiles;
-};
-
-static inline unsigned buf_width(struct scratch_buf *buf)
-{
- return buf->stride/sizeof(uint8_t);
-}
-
-static inline unsigned buf_height(struct scratch_buf *buf)
-{
- return buf->size/buf->stride;
-}
-
typedef void (*media_fillfunc_t)(struct intel_batchbuffer *batch,
struct scratch_buf *dst,
unsigned x, unsigned y,