anv: Include the pipeline layout in the shader hash
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 Aug 2016 00:14:11 +0000 (17:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 Aug 2016 03:42:05 +0000 (20:42 -0700)
commit2301705dee6324634520559b27ac6728ebb02191
tree30832142f487a117e15b3c9f789ff119b5428bf3
parent05f36435ef117e48f457b44877d04dd6249b3bb7
anv: Include the pipeline layout in the shader hash

The pipeline layout affects shader compilation because it is what
determines binding table locations as well as whether or not a particular
buffer has dynamic offsets.  Since this affects the generated shader, it
needs to be in the hash.  This fixes a bunch of CTS tests now that the CTS
is using a pipeline cache.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_pipeline_cache.c
src/intel/vulkan/anv_private.h