OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 10:39:45 +0000 (11:39 +0100)
commit544a92ad499eece00538385121abc8c61b886fea
treebe1e878eee0cc0224f29713a139090128964c23b
parent9fced1aa53826da26d0fa35edb456f3ec4c0ad36
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>
(cherry picked from commit 2301705dee6324634520559b27ac6728ebb02191)
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