diff options
Diffstat (limited to 'src/gallium/include/pipe/p_screen.h')
-rw-r--r-- | src/gallium/include/pipe/p_screen.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index 3ac5f3cc9ff..755291ae501 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -275,6 +275,15 @@ struct pipe_screen { */ void (*query_memory_info)(struct pipe_screen *screen, struct pipe_memory_info *info); + + /** + * Get IR specific compiler options struct. For PIPE_SHADER_IR_NIR this + * returns a 'struct nir_shader_compiler_options'. Drivers reporting + * NIR as the preferred IR must implement this. + */ + const void *(*get_compiler_options)(struct pipe_screen *screen, + enum pipe_shader_ir ir, + unsigned shader); }; |