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

Author: Jason Ekstrand <[email protected]>
Date:   Mon Jun  6 11:20:44 2016 -0700

anv/pipeline_cache: Allow for an zero-sized cache

This gets ANV_ENABLE_PIPELINE_CACHE=false working again.

Signed-off-by: Jason Ekstrand <[email protected]>
Cc: "12.0" <[email protected]>

---

 src/intel/vulkan/anv_pipeline_cache.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_pipeline_cache.c 
b/src/intel/vulkan/anv_pipeline_cache.c
index f75c423..6af15d4 100644
--- a/src/intel/vulkan/anv_pipeline_cache.c
+++ b/src/intel/vulkan/anv_pipeline_cache.c
@@ -158,7 +158,10 @@ anv_pipeline_cache_search_unlocked(struct 
anv_pipeline_cache *cache,
       }
    }
 
-   unreachable("hash table should never be full");
+   /* This can happen if the pipeline cache is disabled via
+    * ANV_ENABLE_PIPELINE_CACHE=false
+    */
+   return NO_KERNEL;
 }
 
 uint32_t

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to