V2: Provide more detail in callback description and add description to screen.rst --- src/gallium/docs/source/screen.rst | 9 +++++++++ src/gallium/include/pipe/p_screen.h | 8 ++++++++ 2 files changed, 17 insertions(+)
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index 74c8cec..c75786b 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -763,6 +763,15 @@ The driver-specific query group is described with the pipe_driver_query_group_info structure. + +get_disk_shader_cache +^^^^^^^^^^^^^^^^^^^^^ + +Returns a pointer to driver-specific on-disk shader cache. If the driver +failed to create the cache or does not support an on-disk shader cache NULL is +returned. + + Thread safety ------------- diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index b6203f1..40c0887 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -58,6 +58,7 @@ struct pipe_surface; struct pipe_transfer; struct pipe_box; struct pipe_memory_info; +struct disk_cache; /** @@ -318,6 +319,13 @@ struct pipe_screen { const void *(*get_compiler_options)(struct pipe_screen *screen, enum pipe_shader_ir ir, unsigned shader); + + /** + * Returns a pointer to driver-specific on-disk shader cache. If the driver + * failed to create the cache or does not support an on-disk shader cache + * NULL is returned. + */ + struct disk_cache *(*get_disk_shader_cache)(struct pipe_screen *screen); }; -- 2.9.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev