anv: Don't re-upload shaders when merging
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 4 Mar 2016 20:27:31 +0000 (12:27 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 5 Mar 2016 21:50:07 +0000 (13:50 -0800)
commit584f39c65ed24d6c331d8ccf05d93678f3fafe16
tree3375c49caa7e62839ea72c9c1f9f20571da55863
parent626559ed3717a205c1315040caa4308e77c70eb5
anv: Don't re-upload shaders when merging

Using anv_pipeline_cache_upload_kernel() will re-upload the kernel and
prog_data when we merge caches. Since the kernel and prog_data is
already in the program_stream, use anv_pipeline_cache_add_entry()
instead to only add the entry to the hash table.
src/intel/vulkan/anv_pipeline_cache.c