From 81d5b61a194d0cb060c4e836db6abc4f1b4fb0e8 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 28 Aug 2017 15:57:20 -0700 Subject: blorp: Turn anv_CmdCopyBuffer into a blorp_buffer_copy() helper. I want to be able to copy between buffer objects using BLORP in the i965 driver. Anvil already had code to do this, in a reasonably efficient manner - first using large bpp copies, then smaller bpp copies. This patch moves that logic into BLORP as blorp_buffer_copy(), so we can use it in both drivers. Reviewed-by: Jason Ekstrand --- src/intel/blorp/blorp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/intel/blorp/blorp.h') diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h index 4d9a44b0926..9716c663021 100644 --- a/src/intel/blorp/blorp.h +++ b/src/intel/blorp/blorp.h @@ -132,6 +132,12 @@ blorp_copy(struct blorp_batch *batch, uint32_t dst_x, uint32_t dst_y, uint32_t src_width, uint32_t src_height); +void +blorp_buffer_copy(struct blorp_batch *batch, + struct blorp_address src, + struct blorp_address dst, + uint64_t size); + void blorp_fast_clear(struct blorp_batch *batch, const struct blorp_surf *surf, enum isl_format format, -- cgit v1.2.3