summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glspirv.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-06-10 20:35:21 +0200
committerEduardo Lima Mitev <[email protected]>2017-12-12 08:18:32 +0100
commit5bc03d250861df6836f9c9fe37e0609c1777a87b (patch)
tree378bee83caef17baf2c2793d06f18c2484afb5a5 /src/mesa/main/glspirv.h
parenta8889f5cc7129c1f8942248d620f64b4496e8f35 (diff)
mesa: implement SPIR-V loading in glShaderBinary
v2: * Add a gl_shader_spirv_data member to gl_shader, which already encapsulates a gl_spirv_module where the binary will be saved. (Eduardo Lima) * Just use the 'spirv_data' member to know whether a gl_shader has the SPIR_V_BINARY_ARB state. (Timothy Arceri) * Remove redundant argument checks. Move extension presence check to API entry point where the rest of checks are. Retype 'n' and 'length'arguments to use the correct and more standard types. (Ian Romanick) * Fix some nitpicks. (Ian Romanick) Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/glspirv.h')
-rw-r--r--src/mesa/main/glspirv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/glspirv.h b/src/mesa/main/glspirv.h
index b8a0125ea9f..ba281f68bef 100644
--- a/src/mesa/main/glspirv.h
+++ b/src/mesa/main/glspirv.h
@@ -71,6 +71,11 @@ void
_mesa_shader_spirv_data_reference(struct gl_shader_spirv_data **dest,
struct gl_shader_spirv_data *src);
+void
+_mesa_spirv_shader_binary(struct gl_context *ctx,
+ unsigned n, struct gl_shader **shaders,
+ const void* binary, size_t length);
+
/**
* \name API functions
*/