anv: intel: use anv_image's computed size for importing a BO
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 11 Oct 2017 16:24:37 +0000 (17:24 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 11 Oct 2017 21:29:55 +0000 (22:29 +0100)
commite568d2bd1f148821057a8bf071ce39f342112d83
tree7346662dab70da8d923987cd226a079357504e68
parentc0a4f56fb9945e36a004bc38852fbb801aae3bd5
anv: intel: use anv_image's computed size for importing a BO

Rather than relying on size = stride * height, we can rely on
anv_image's total size.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Daniel Stone <daniels@collabora.com>
src/intel/vulkan/anv_intel.c