anv/image: Enable specifying a surface's minimum pitch
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 21 Mar 2016 17:41:06 +0000 (10:41 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Sat, 26 Mar 2016 00:33:40 +0000 (17:33 -0700)
commit4eab37d6cda54a4ac600347f764ef223c3a7459f
treef760ff08be5f934098fddbc7a13df16129c620b7
parent38250a9ca32ea79ada10918952c2917b535a4536
anv/image: Enable specifying a surface's minimum pitch

This is required to create multiple, horizontally adjacent, max-width
images from one blit2d surface. This is also required for more accurate
width specification of surfaces within a larger surface (which is seen
as the smaller surface's enclosing region).

Note that anv_image_create_info::stride has been unused since commit,
b36938964063a4072abfd779f5607743dbc3b6f1 .

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