From 4d40a6776f08dd87b7e007da691b73d45a9bf1fa Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Fri, 8 Dec 2017 16:43:05 +0200 Subject: igt_fb: Add support for drawing to non-32bit Y/Yf tiled FBs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When drawing with cairo to Y/Yf tiled FBs we use a temporary linear buffer which is mapped to the CPU, but the fast blit needed for this only expects 32 bpp FBs. Add support for other bpps too. This is needed for upcoming patches testing non-32bit bpp formats with Y/Yf tiling. Thanks to Ville for explaining why we need the temporary buffer. (Looks like for Y tiling we could do without, but that's a separate topic.) Cc: Ville Syrjälä Cc: Chris Wilson Reviewed-by: Chris Wilson Signed-off-by: Imre Deak --- lib/intel_batchbuffer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/intel_batchbuffer.h') diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index 869747db..6bee4167 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -228,6 +228,7 @@ unsigned igt_buf_height(struct igt_buf *buf); void igt_blitter_fast_copy(struct intel_batchbuffer *batch, struct igt_buf *src, unsigned src_x, unsigned src_y, unsigned width, unsigned height, + int bpp, struct igt_buf *dst, unsigned dst_x, unsigned dst_y); void igt_blitter_fast_copy__raw(int fd, @@ -240,6 +241,9 @@ void igt_blitter_fast_copy__raw(int fd, /* size */ unsigned int width, unsigned int height, + /* bpp */ + int bpp, + /* dst */ uint32_t dst_handle, unsigned int dst_stride, -- cgit v1.2.3