From: Mika Kahola <mika.kahola@intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 5/8] lib/intel_batchbuffer: Add src/dst delta arguments to igt_blitter_fast_copy too
Date: Fri, 26 Jan 2018 11:04:46 +0200 [thread overview]
Message-ID: <1516957486.2602.7.camel@intel.com> (raw)
In-Reply-To: <20180123125642.58698-6-maarten.lankhorst@linux.intel.com>
On Tue, 2018-01-23 at 13:56 +0100, Maarten Lankhorst wrote:
> Nothing uses this currently, but other copy functions have the same
> delta now.
>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> ---
> lib/intel_batchbuffer.c | 12 ++++++++----
> lib/intel_batchbuffer.h | 10 ++++++----
> 2 files changed, 14 insertions(+), 8 deletions(-)
>
> diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
> index 3a199fa7ba57..3c1689cd302c 100644
> --- a/lib/intel_batchbuffer.c
> +++ b/lib/intel_batchbuffer.c
> @@ -695,12 +695,14 @@ void igt_blitter_fast_copy__raw(int fd,
> * igt_blitter_fast_copy:
> * @batch: batchbuffer object
> * @src: source i-g-t buffer object
> + * @src_delta: offset into the source i-g-t bo
> * @src_x: source pixel x-coordination
> * @src_y: source pixel y-coordination
> * @width: width of the copied rectangle
> * @height: height of the copied rectangle
> * @bpp: source and destination bits per pixel
> * @dst: destination i-g-t buffer object
> + * @dst_delta: offset into the destination i-g-t bo
> * @dst_x: destination pixel x-coordination
> * @dst_y: destination pixel y-coordination
> *
> @@ -709,10 +711,12 @@ void igt_blitter_fast_copy__raw(int fd,
> * The source and destination surfaces cannot overlap.
> */
> void igt_blitter_fast_copy(struct intel_batchbuffer *batch,
> - struct igt_buf *src, unsigned src_x,
> unsigned src_y,
> + struct igt_buf *src, unsigned src_delta,
> + unsigned src_x, unsigned src_y,
> unsigned width, unsigned height,
> int bpp,
> - struct igt_buf *dst, unsigned dst_x,
> unsigned dst_y)
> + struct igt_buf *dst, unsigned dst_delta,
> + unsigned dst_x, unsigned dst_y)
> {
> uint32_t src_pitch, dst_pitch;
> uint32_t dword0, dword1;
> @@ -736,11 +740,11 @@ void igt_blitter_fast_copy(struct
> intel_batchbuffer *batch,
> OUT_BATCH(dword1 | dst_pitch);
> OUT_BATCH((dst_y << 16) | dst_x); /* dst x1,y1 */
> OUT_BATCH(((dst_y + height) << 16) | (dst_x + width)); /*
> dst x2,y2 */
> - OUT_RELOC(dst->bo, I915_GEM_DOMAIN_RENDER,
> I915_GEM_DOMAIN_RENDER, 0);
> + OUT_RELOC(dst->bo, I915_GEM_DOMAIN_RENDER,
> I915_GEM_DOMAIN_RENDER, dst_delta);
> OUT_BATCH(0); /* dst address upper bits */
> OUT_BATCH((src_y << 16) | src_x); /* src x1,y1 */
> OUT_BATCH(src_pitch);
> - OUT_RELOC(src->bo, I915_GEM_DOMAIN_RENDER, 0, 0);
> + OUT_RELOC(src->bo, I915_GEM_DOMAIN_RENDER, 0, src_delta);
> OUT_BATCH(0); /* src address upper bits */
> ADVANCE_BATCH();
>
> diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h
> index a6d8f9863698..2c262d7d7e79 100644
> --- a/lib/intel_batchbuffer.h
> +++ b/lib/intel_batchbuffer.h
> @@ -226,10 +226,12 @@ unsigned igt_buf_width(struct igt_buf *buf);
> 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);
> + struct igt_buf *src, unsigned src_delta,
> + unsigned src_x, unsigned src_y,
> + unsigned width, unsigned height,
> + int bpp,
> + struct igt_buf *dst, unsigned dst_delta,
> + unsigned dst_x, unsigned dst_y);
>
> void igt_blitter_fast_copy__raw(int fd,
> /* src */
--
Mika Kahola - Intel OTC
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-01-26 9:04 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-23 12:56 [igt-dev] [PATCH i-g-t 0/8] lib/igt_fb: Add support for the NV12 format Maarten Lankhorst
2018-01-23 12:56 ` [igt-dev] [PATCH i-g-t 1/8] lib/igt_fb: Add igt_put_cairo_ctx as counter to igt_get_cairo_ctx Maarten Lankhorst
2018-01-23 15:50 ` Ville Syrjälä
2018-01-24 12:26 ` Maarten Lankhorst
2018-01-25 11:43 ` Mika Kahola
2018-01-29 17:01 ` Maarten Lankhorst
2018-01-31 17:03 ` Ville Syrjälä
2018-01-23 12:56 ` [igt-dev] [PATCH i-g-t 2/8] lib/igt_fb: Pass format to igt_calc_fb_size Maarten Lankhorst
2018-01-25 11:51 ` Mika Kahola
2018-01-23 12:56 ` [igt-dev] [PATCH i-g-t 3/8] lib/fb: Handle planar formats in igt_calc_fb_size and create_bo_for_fb Maarten Lankhorst
2018-01-26 9:00 ` Mika Kahola
2018-01-26 10:20 ` Maarten Lankhorst
2018-01-26 10:24 ` Mika Kahola
2018-01-26 12:01 ` Maarten Lankhorst
2018-01-26 13:10 ` Mika Kahola
2018-02-01 14:39 ` Ville Syrjälä
2018-01-23 12:56 ` [igt-dev] [PATCH i-g-t 4/8] lib/intel_batchbuffer: Add delta argument to igt_blitter_fast_copy__raw Maarten Lankhorst
2018-01-26 9:02 ` Mika Kahola
2018-01-29 12:10 ` [igt-dev] [PATCH i-g-t] lib/intel_batchbuffer: Add delta argument to igt_blitter_fast_copy__raw, v2 Maarten Lankhorst
2018-01-23 12:56 ` [igt-dev] [PATCH i-g-t 5/8] lib/intel_batchbuffer: Add src/dst delta arguments to igt_blitter_fast_copy too Maarten Lankhorst
2018-01-26 9:04 ` Mika Kahola [this message]
2018-01-23 12:56 ` [igt-dev] [PATCH i-g-t 6/8] lib/fb: Add support for creating planar framebuffers Maarten Lankhorst
2018-01-23 14:50 ` [igt-dev] [PATCH i-g-t] lib/fb: Add support for creating planar framebuffers, v2 Maarten Lankhorst
2018-01-24 10:53 ` [igt-dev] [PATCH i-g-t] lib/fb: Add support for creating planar framebuffers, v3 Maarten Lankhorst
2018-01-29 8:44 ` Mika Kahola
2018-01-23 12:56 ` [igt-dev] [PATCH i-g-t 7/8] tests/kms_render: Copy all planes when copying fb Maarten Lankhorst
2018-01-26 13:56 ` Mika Kahola
2018-02-28 15:40 ` Arkadiusz Hiler
2018-02-28 15:43 ` Maarten Lankhorst
2018-02-28 15:43 ` Arkadiusz Hiler
2018-01-23 12:56 ` [igt-dev] [PATCH i-g-t 8/8] lib/igt_fb: Add support for NV12 format through conversion Maarten Lankhorst
2018-01-31 13:45 ` Mika Kahola
2018-01-31 14:32 ` Ville Syrjälä
2018-01-31 15:09 ` Maarten Lankhorst
2018-01-31 16:52 ` [igt-dev] [PATCH i-g-t] lib/igt_fb: Add support for NV12 format through conversion, v2 Maarten Lankhorst
2018-02-01 14:23 ` Ville Syrjälä
2018-02-01 14:43 ` Maarten Lankhorst
2018-01-23 14:28 ` [igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_fb: Add support for the NV12 format Patchwork
2018-01-23 15:41 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_fb: Add support for the NV12 format. (rev2) Patchwork
2018-01-23 19:47 ` [igt-dev] ✗ Fi.CI.IGT: failure for lib/igt_fb: Add support for the NV12 format Patchwork
2018-01-23 22:30 ` [igt-dev] ✗ Fi.CI.IGT: failure for lib/igt_fb: Add support for the NV12 format. (rev2) Patchwork
2018-01-24 12:16 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_fb: Add support for the NV12 format. (rev3) Patchwork
2018-01-24 15:57 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-01-29 12:37 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_fb: Add support for the NV12 format. (rev4) Patchwork
2018-01-29 17:29 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-01-31 17:15 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_fb: Add support for the NV12 format. (rev5) Patchwork
2018-01-31 18:55 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516957486.2602.7.camel@intel.com \
--to=mika.kahola@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox