OSDN Git Service

anv: Import mako templates only during execution of anv_extensions
authorAndres Gomez <agomez@igalia.com>
Wed, 10 Jan 2018 21:11:51 +0000 (23:11 +0200)
committerAndres Gomez <agomez@igalia.com>
Thu, 11 Jan 2018 12:44:03 +0000 (14:44 +0200)
commita1901d092c053485cdfff0a65a83f9f0987ffc62
treec145315f95aa749e8c5dc8778825874a06e77438
parentf2c0e47d9cf3fa86cdf746beb862164bf0056e20
anv: Import mako templates only during execution of anv_extensions

anv_extensions usage from anv_icd was bringing the unwanted dependency
of mako templates for the latter. We don't want that since it will
force the dependency even for distributable tarballs which was not
needed until now.

Jason suggested this approach.

v2: Patch simplification (Jason).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104551
Fixes: 0ab04ba979b ("anv: Use python to generate ICD json files")
Cc: Jason Ekstrand <jason.ekstrand@intel.com>
Cc: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_extensions.py