Lines Matching defs:cache
1589 * shader_variants from the cache, so we can just upload the assembly of all
1806 struct v3dv_pipeline_cache *cache)
1812 nir = v3dv_pipeline_cache_search_for_nir(pipeline, cache,
1820 * creation so the cache hit is not recorded in the pipeline feedback
1835 v3dv_pipeline_cache_upload_nir(pipeline, cache, nir,
1838 /* Ensure that the variant is on the default cache, as cmd_buffer could
1841 if (default_cache != cache) {
2030 * to search in the cache, we also use the SPIR-V or the serialized NIR for
2044 * and unref by both the pipeline and the pipeline cache, so we can't
2045 * ensure that the cache or pipeline alloc will be available on the last
2206 struct v3dv_pipeline_cache *cache,
2210 pipeline->vs->nir = pipeline_stage_get_nir(pipeline->vs, pipeline, cache);
2347 struct v3dv_pipeline_cache *cache,
2456 if (!pipeline_add_multiview_gs(pipeline, cache, pAllocator))
2460 /* First we try to get the variants from the pipeline cache (unless we are
2474 v3dv_pipeline_cache_search_for_pipeline(cache,
2488 if (cache_hit && cache != &pipeline->device->default_pipeline_cache)
2500 * shader or the pipeline cache) and compile.
2516 pipeline->vs->nir = pipeline_stage_get_nir(pipeline->vs, pipeline, cache);
2518 pipeline->gs->nir = pipeline_stage_get_nir(pipeline->gs, pipeline, cache);
2520 pipeline->fs->nir = pipeline_stage_get_nir(pipeline->fs, pipeline, cache);
2544 /* We should have got all the variants or no variants from the cache */
2570 v3dv_pipeline_cache_upload_pipeline(pipeline, cache);
2924 struct v3dv_pipeline_cache *cache,
3002 result = pipeline_compile_graphics(pipeline, cache, pCreateInfo, pAllocator);
3043 V3DV_FROM_HANDLE(v3dv_pipeline_cache, cache, _cache);
3048 /* Use the default pipeline cache if none is specified */
3049 if (cache == NULL && device->instance->default_pipeline_cache_enabled)
3050 cache = &device->default_pipeline_cache;
3058 result = pipeline_init(pipeline, device, cache,
3140 struct v3dv_pipeline_cache *cache,
3177 /* First we try to get the variants from the pipeline cache (unless we are
3190 v3dv_pipeline_cache_search_for_pipeline(cache, pipeline->sha1, &cache_hit);
3194 if (cache_hit && cache != &pipeline->device->default_pipeline_cache)
3213 /* If not found on cache, compile it */
3214 p_stage->nir = pipeline_stage_get_nir(p_stage, pipeline, cache);
3237 v3dv_pipeline_cache_upload_pipeline(pipeline, cache);
3264 struct v3dv_pipeline_cache *cache,
3273 VkResult result = pipeline_compile_compute(pipeline, cache, info, alloc);
3286 V3DV_FROM_HANDLE(v3dv_pipeline_cache, cache, _cache);
3291 /* Use the default pipeline cache if none is specified */
3292 if (cache == NULL && device->instance->default_pipeline_cache_enabled)
3293 cache = &device->default_pipeline_cache;
3300 result = compute_pipeline_init(pipeline, device, cache,