Mesa (master): anv: don't use default pipeline cache for hits for VK_EXT_pipeline_creation_feedback

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 10 18:22:39 UTC 2019


Module: Mesa
Branch: master
Commit: 3053d5a4f2fd6f81a6fb8d398afeaca91c7692e8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3053d5a4f2fd6f81a6fb8d398afeaca91c7692e8

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Wed Apr 10 18:28:20 2019 +0100

anv: don't use default pipeline cache for hits for VK_EXT_pipeline_creation_feedback

If the user didn't provide a pipeline cache and we're using the
default internal pipeline cache, then we shouldn't consider a cache
hit for VK_EXT_pipeline_creation_feedback as the application did not
provide a cache.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: 6601e5d6fc68cd ("anv: implement VK_EXT_pipeline_creation_feedback")
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/intel/vulkan/anv_pipeline_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c
index a25b56cf9d1..bc7dd100e2b 100644
--- a/src/intel/vulkan/anv_pipeline_cache.c
+++ b/src/intel/vulkan/anv_pipeline_cache.c
@@ -621,7 +621,7 @@ anv_device_search_for_kernel(struct anv_device *device,
    if (cache) {
       bin = anv_pipeline_cache_search(cache, key_data, key_size);
       if (bin) {
-         *user_cache_hit = true;
+         *user_cache_hit = cache != &device->default_pipeline_cache;
          return bin;
       }
    }




More information about the mesa-commit mailing list