From 6958273267c5905af90ccd52a454079aab11edbe Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Sat, 10 Jun 2017 21:35:26 +0200 Subject: mesa: add gl_constants::SpirV{Extensions,NIROptions} For drivers to declare which SPIR-V features they support, and what compiler behavior they desire. --- src/mesa/main/mtypes.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 6ee0e9be6a..987a73e9d4 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -90,6 +90,8 @@ struct gl_program_parameter_list; struct gl_spirv_module; struct nir_function; struct nir_shader; +struct nir_shader_compiler_options; +struct nir_spirv_supported_extensions; struct set; struct set_entry; struct vbo_context; @@ -4001,6 +4003,10 @@ struct gl_constants /** When drivers are OK with mapped buffers during draw and other calls. */ bool AllowMappedBuffersDuringExecution; + + /** GL_ARB_gl_spirv */ + const struct nir_spirv_supported_extensions *SpirVExtensions; + const struct nir_shader_compiler_options *SpirVNIROptions; }; -- cgit v1.2.3