This will be the equivalent to link_shaders() from src/compiler/glsl/linker.cpp, but for SPIR-V programs. --- src/mesa/main/glspirv.c | 10 ++++++++++ src/mesa/main/glspirv.h | 4 ++++ 2 files changed, 14 insertions(+)
diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c index fe954b05c7b..86f1d221cc9 100644 --- a/src/mesa/main/glspirv.c +++ b/src/mesa/main/glspirv.c @@ -117,6 +117,16 @@ _mesa_spirv_shader_binary(struct gl_context *ctx, } } +void +_mesa_spirv_link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) +{ + /* @TODO: This is a placeholder for the equivalent of + * compiler/glsl/linker.cpp::link_shaders() but for SPIR-V. + */ + prog->data->LinkStatus = linking_success; + prog->data->Validated = false; +} + void GLAPIENTRY _mesa_SpecializeShaderARB(GLuint shader, const GLchar *pEntryPoint, diff --git a/src/mesa/main/glspirv.h b/src/mesa/main/glspirv.h index 5ffaa230629..f0c9dc01c51 100644 --- a/src/mesa/main/glspirv.h +++ b/src/mesa/main/glspirv.h @@ -76,6 +76,10 @@ _mesa_spirv_shader_binary(struct gl_context *ctx, GLint n, struct gl_shader **shaders, const void* binary, GLint length); +void +_mesa_spirv_link_shaders(struct gl_context *ctx, + struct gl_shader_program *prog); + /** * \name API functions */ -- 2.11.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev