summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.h
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-07-29 16:43:31 +0300
committerImre Deak <imre.deak@intel.com>2013-07-29 18:40:00 +0300
commitc1ee0bb53269ded7b79966d081518d689639bac7 (patch)
tree349642ebb3e402208e04bf1c0cb0077add902b1e /lib/intel_batchbuffer.h
parenta85548910cbb5f9f9c90b99a178e3b5bc1034730 (diff)
intel_batchbuffer: add support for non-32bit blt copies
Needed by an upcoming patch fixing kms_render's blits for fbs that have other than 32bpp formats. Based on the corresponding SNA function. v2: - fix random ordering of src, dst parameters (Chris) - pass pitch in bytes rather than pixels (Chris) Signed-off-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r--lib/intel_batchbuffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h
index 67617cee..4eee7ea0 100644
--- a/lib/intel_batchbuffer.h
+++ b/lib/intel_batchbuffer.h
@@ -96,6 +96,11 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch,
#define ADVANCE_BATCH() do { \
} while(0)
+void
+intel_blt_copy(struct intel_batchbuffer *batch,
+ drm_intel_bo *src_bo, int src_x1, int src_y1, int src_pitch,
+ drm_intel_bo *dst_bo, int dst_x1, int dst_y1, int dst_pitch,
+ int width, int height, int bpp);
void intel_copy_bo(struct intel_batchbuffer *batch,
drm_intel_bo *dst_bo, drm_intel_bo *src_bo,
int width, int height);