diff options
author | Marek Olšák <[email protected]> | 2018-08-06 07:09:28 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-04-01 12:37:52 -0400 |
commit | e871cbd625953c3767d53a858ab6478cd5ebc24d (patch) | |
tree | e4f2262d2e2f6be00981e500233596932b9796e6 /src/gallium/include | |
parent | c5c38e831ee8113cf97fb5308fbb687464ae2f0e (diff) |
gallium: implement ARB/KHR_parallel_shader_compile
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_screen.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index c4d6e1cc94f..d4e2d9f63ac 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -442,6 +442,19 @@ struct pipe_screen { * \param uuid pointer to a memory region of PIPE_UUID_SIZE bytes */ void (*get_device_uuid)(struct pipe_screen *screen, char *uuid); + + /** + * Set the maximum number of parallel shader compiler threads. + */ + void (*set_max_shader_compiler_threads)(struct pipe_screen *screen, + unsigned max_threads); + + /** + * Return whether parallel shader compilation has finished. + */ + bool (*is_parallel_shader_compilation_finished)(struct pipe_screen *screen, + void *shader, + unsigned shader_type); }; |