anv: Determine the type of mapping based on type metadata
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 May 2017 18:13:01 +0000 (11:13 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 23 May 2017 23:46:32 +0000 (16:46 -0700)
commit92325a7efc769c32e03031323e21700dc55171e4
treef0b0af845a2599475ff9f36b7e3bce44287417a9
parentc1f4343807d1040bd7b5440aa2f5fccf5f12842d
anv: Determine the type of mapping based on type metadata

Before, we were just comparing the type index to 0.  Now we actually
look the type up in the table and check its properties to determine what
kind of mapping we want to do.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Cc: "17.1" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h