blorp: Turn anv_CmdCopyBuffer into a blorp_buffer_copy() helper.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 28 Aug 2017 22:57:20 +0000 (15:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Aug 2017 23:59:07 +0000 (16:59 -0700)
commit81d5b61a194d0cb060c4e836db6abc4f1b4fb0e8
tree31346c912873099e8d361942cf31dfd50b55e321
parentb8dd69e1b49a5c4c5c82e34f804a97f7448ff6c3
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 <jason@jlekstrand.net>
src/intel/blorp/blorp.h
src/intel/blorp/blorp_blit.c
src/intel/vulkan/anv_blorp.c