• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2023 Rose Hudson
3  * Copyright 2018 Alyssa Rosenzweig
4  * SPDX-License-Identifier: MIT
5  *
6  */
7 
8 #pragma once
9 
10 #include "util/disk_cache.h"
11 #include "agx_state.h"
12 
13 void agx_disk_cache_store(struct disk_cache *cache,
14                           const struct agx_uncompiled_shader *uncompiled,
15                           const union asahi_shader_key *key,
16                           const struct agx_compiled_shader *binary);
17 
18 struct agx_compiled_shader *
19 agx_disk_cache_retrieve(struct agx_screen *screen,
20                         const struct agx_uncompiled_shader *uncompiled,
21                         const union asahi_shader_key *key);
22 
23 void agx_disk_cache_init(struct agx_screen *screen);
24