diff options
author | Marek Olšák <[email protected]> | 2019-10-23 17:10:01 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-10-23 18:11:19 -0400 |
commit | 6b166d6fb1cc46219f9848d4d195cd5155fbfb4f (patch) | |
tree | d5e171936103b8789d765be0467f8d6a49312896 | |
parent | fc04a2fc3120ad77eee7431ed9d7d1300183647a (diff) |
gallium/noop: implement get_disk_shader_cache and get_compiler_options
trivial
-rw-r--r-- | src/gallium/auxiliary/driver_noop/noop_pipe.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/driver_noop/noop_pipe.c b/src/gallium/auxiliary/driver_noop/noop_pipe.c index 722e15b97c7..6ac22504b65 100644 --- a/src/gallium/auxiliary/driver_noop/noop_pipe.c +++ b/src/gallium/auxiliary/driver_noop/noop_pipe.c @@ -498,6 +498,22 @@ static void noop_query_memory_info(struct pipe_screen *pscreen, screen->query_memory_info(screen, info); } +static struct disk_cache *noop_get_disk_shader_cache(struct pipe_screen *pscreen) +{ + struct pipe_screen *screen = ((struct noop_pipe_screen*)pscreen)->oscreen; + + return screen->get_disk_shader_cache(screen); +} + +static const void *noop_get_compiler_options(struct pipe_screen *pscreen, + enum pipe_shader_ir ir, + enum pipe_shader_type shader) +{ + struct pipe_screen *screen = ((struct noop_pipe_screen*)pscreen)->oscreen; + + return screen->get_compiler_options(screen, ir, shader); +} + struct pipe_screen *noop_screen_create(struct pipe_screen *oscreen) { struct noop_pipe_screen *noop_screen; @@ -535,6 +551,8 @@ struct pipe_screen *noop_screen_create(struct pipe_screen *oscreen) screen->fence_reference = noop_fence_reference; screen->fence_finish = noop_fence_finish; screen->query_memory_info = noop_query_memory_info; + screen->get_disk_shader_cache = noop_get_disk_shader_cache; + screen->get_compiler_options = noop_get_compiler_options; return screen; } |