mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-14 18:03:07 +00:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user