anv/blit2d: Add a function to create an ImageView
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 18 Mar 2016 22:12:32 +0000 (15:12 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Sat, 26 Mar 2016 00:33:50 +0000 (17:33 -0700)
commit0e82896a116ea0212dfcb13fb1456c93732d8564
tree4150fc32a1a59f6fd03f16803cb70bbfeb0cacb5
parent4eab37d6cda54a4ac600347f764ef223c3a7459f
anv/blit2d: Add a function to create an ImageView

This function differs from the open-coded implementation in that the
ImageView's width is determined by the caller and is not unconditionally
set to match the number of texels within the surface's pitch.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_meta_blit2d.c