summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-06-10 21:35:26 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-07-13 13:27:39 +0200
commit6958273267c5905af90ccd52a454079aab11edbe (patch)
tree428986a57d66902474580de9e440f0fa1921306d
parentc9689d5d14fd21e1e6e63a4ee6b166b57129ead5 (diff)
mesa: add gl_constants::SpirV{Extensions,NIROptions}
For drivers to declare which SPIR-V features they support, and what compiler behavior they desire.
-rw-r--r--src/mesa/main/mtypes.h6
1 files changed, 6 insertions, 0 deletions
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;
};