diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-01-22 13:49:22 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-02-01 14:19:48 +0100 |
commit | 06c53e9ae44f1759740738d5ea8029594da31e56 (patch) | |
tree | 715b8da30744003e9b4a73bc45d46963520bc654 /lib/igt_fb.c | |
parent | 01ef9f810fef948fd2e17af20d5ee2d08ec5f05d (diff) |
lib/intel_batchbuffer: Add delta argument to igt_blitter_fast_copy__raw, v2.
Adding a delta offset will allow us to copy planar framebuffers with this
function.
Changes since v1:
- Set src and destination addresses to the delta, in case BO is mapped at offset 0.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com> #v1
Diffstat (limited to 'lib/igt_fb.c')
-rw-r--r-- | lib/igt_fb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index 6cb77ddc..dd82fdc6 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -1121,13 +1121,13 @@ static void destroy_cairo_surface__blit(void *arg) I915_GEM_DOMAIN_GTT, 0); igt_blitter_fast_copy__raw(blit->fd, - blit->linear.handle, + blit->linear.handle, 0, blit->linear.stride, I915_TILING_NONE, 0, 0, /* src_x, src_y */ fb->width, fb->height, igt_drm_format_to_bpp(fb->drm_format), - fb->gem_handle, + fb->gem_handle, 0, fb->stride, obj_tiling, 0, 0 /* dst_x, dst_y */); @@ -1169,13 +1169,13 @@ static void create_cairo_surface__blit(int fd, struct igt_fb *fb) I915_GEM_DOMAIN_GTT, 0); igt_blitter_fast_copy__raw(fd, - fb->gem_handle, + fb->gem_handle, 0, fb->stride, obj_tiling, 0, 0, /* src_x, src_y */ fb->width, fb->height, igt_drm_format_to_bpp(fb->drm_format), - blit->linear.handle, + blit->linear.handle, 0, blit->linear.stride, I915_TILING_NONE, 0, 0 /* dst_x, dst_y */); |