Home
last modified time | relevance | path

Searched refs:disk_shader_cache (Results 1 – 15 of 15) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.c835 disk_cache_destroy(screen->disk_shader_cache); in llvmpipe_destroy_screen()
921 screen->disk_shader_cache = disk_cache_create("llvmpipe", cache_id, 0); in lp_disk_cache_create()
928 return screen->disk_shader_cache; in lp_get_disk_shader_cache()
937 if (!screen->disk_shader_cache) in lp_disk_cache_find_shader()
939 disk_cache_compute_key(screen->disk_shader_cache, ir_sha1_cache_key, 20, sha1); in lp_disk_cache_find_shader()
942 uint8_t *buffer = disk_cache_get(screen->disk_shader_cache, sha1, &binary_size); in lp_disk_cache_find_shader()
959 if (!screen->disk_shader_cache || !cache->data_size || cache->dont_cache) in lp_disk_cache_insert_shader()
961 disk_cache_compute_key(screen->disk_shader_cache, ir_sha1_cache_key, 20, sha1); in lp_disk_cache_insert_shader()
962 disk_cache_put(screen->disk_shader_cache, sha1, cache->data, cache->data_size, NULL); in lp_disk_cache_insert_shader()
Dlp_screen.h72 struct disk_cache *disk_shader_cache; member
/third_party/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_screen.c72 return nouveau_screen(pscreen)->disk_shader_cache; in nouveau_screen_get_disk_shader_cache()
175 screen->disk_shader_cache = in nouveau_disk_cache_create()
381 disk_cache_destroy(screen->disk_shader_cache); in nouveau_screen_fini()
Dnouveau_screen.h72 struct disk_cache *disk_shader_cache; member
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_screen.h48 struct disk_cache *disk_shader_cache; member
Dr300_screen.c109 r300screen->disk_shader_cache = in r300_disk_cache_create()
118 return r300screen->disk_shader_cache; in r300_get_disk_shader_cache()
676 disk_cache_destroy(r300screen->disk_shader_cache); in r300_destroy_screen()
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_program.c574 struct disk_cache *disk_shader_cache, in nvc0_program_translate() argument
646 if (disk_shader_cache) { in nvc0_program_translate()
650 disk_cache_compute_key(disk_shader_cache, blob.data, blob.size, key); in nvc0_program_translate()
651 cached_data = disk_cache_get(disk_shader_cache, key, &cache_size); in nvc0_program_translate()
673 if (disk_shader_cache) { in nvc0_program_translate()
675 disk_cache_put(disk_shader_cache, key, blob.data, blob.size, NULL); in nvc0_program_translate()
Dnvc0_shader_state.c58 nvc0->screen->base.disk_shader_cache, &nvc0->base.debug); in nvc0_program_validate()
Dnvc0_state.c629 nvc0_context(pipe)->screen->base.disk_shader_cache, in nvc0_sp_state_create()
769 nvc0_context(pipe)->screen->base.disk_shader_cache, in nvc0_cp_state_create()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_pipe_common.c787 rscreen->disk_shader_cache = in r600_disk_cache_create()
796 return rscreen->disk_shader_cache; in r600_get_disk_shader_cache()
1374 disk_cache_destroy(rscreen->disk_shader_cache); in r600_destroy_common_screen()
Dr600_pipe_common.h345 struct disk_cache *disk_shader_cache; member
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_shaders.c257 if (sscreen->disk_shader_cache && insert_into_disk_cache) { in si_shader_cache_insert_shader()
258 disk_cache_compute_key(sscreen->disk_shader_cache, ir_sha1_cache_key, 20, key); in si_shader_cache_insert_shader()
259 disk_cache_put(sscreen->disk_shader_cache, key, hw_binary, *((uint32_t *)hw_binary), NULL); in si_shader_cache_insert_shader()
279 if (!sscreen->disk_shader_cache) in si_shader_cache_load_shader()
283 disk_cache_compute_key(sscreen->disk_shader_cache, ir_sha1_cache_key, 20, sha1); in si_shader_cache_load_shader()
286 uint8_t *buffer = disk_cache_get(sscreen->disk_shader_cache, sha1, &binary_size); in si_shader_cache_load_shader()
300 disk_cache_remove(sscreen->disk_shader_cache, sha1); in si_shader_cache_load_shader()
Dsi_pipe.c950 disk_cache_destroy(sscreen->disk_shader_cache); in si_destroy_screen()
1041 sscreen->disk_shader_cache = disk_cache_create(sscreen->info.name, cache_id, in si_disk_cache_create()
Dsi_get.c940 return sscreen->disk_shader_cache; in si_get_disk_shader_cache()
Dsi_pipe.h510 struct disk_cache *disk_shader_cache; member