anv/meta: Implement the blitter API functions
authorNanley Chery <nanley.g.chery@intel.com>
Sat, 27 Feb 2016 20:26:21 +0000 (12:26 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 3 Mar 2016 19:25:04 +0000 (11:25 -0800)
commit2e9b08b9b89c0cf10cc7ca73fd39380766943283
tree769fb10741bd55b1fce2baed66e17fccd62364ea
parent032bf172b48211af8fc892747dc4600fb6595f99
anv/meta: Implement the blitter API functions

Most of the code in anv_meta_blit2d() is borrowed from do_buffer_copy().

Create an image and image view for each rectangle.
Note: For tiled RGB images, ISL will align the image's row_pitch up to
the nearest tile width.

v2 (Jason):
    Keep pitch in units of bytes
    Make src_format and dst_format variables
    s/dest/dst/ in every usage
v3: Fix dst_image width

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/intel/vulkan/anv_meta.h
src/intel/vulkan/anv_meta_blit.c