anv/pipeline: Hash shader modules and spec constants separately
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 12 Oct 2018 22:01:24 +0000 (17:01 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 11 Jan 2019 01:15:27 +0000 (19:15 -0600)
commit8dfda5ebbe58e2c00043bd0fe9d249e57f3c4bd1
tree007207bd4b0e7843fb9624a3aeb81b84dabe2c03
parentb90e55a5d5d6e30f5a48d80bbb9aef578003b522
anv/pipeline: Hash shader modules and spec constants separately

The stuff hashed by anv_pipeline_hash_shader is exactly the inputs to
anv_shader_compile_to_nir so it can be used for NIR caching.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_pipeline.c