diff options
author | Eduardo Lima Mitev <[email protected]> | 2017-10-10 10:46:29 +0200 |
---|---|---|
committer | Alejandro PiƱeiro <[email protected]> | 2018-03-30 09:14:56 +0200 |
commit | 9c36e9f8626fb2b02736abbd11e783b61a40959c (patch) | |
tree | 10c02fd59028dfb639906c0b361e1c8df8d5d7c5 /src/mesa/main/glspirv.h | |
parent | 22b6b3d0a75406f577dcb6d554c96ed42ee35aff (diff) |
mesa/glspirv: Add _mesa_spirv_link_shaders() function
This is the equivalent to link_shaders() from
src/compiler/glsl/linker.cpp, but for SPIR-V programs. It just
creates the program and its gl_linked_shader objects, giving drivers
the opportunity to implement any linking of SPIR-V shaders they choose,
at a later stage.
v2: Bail out if we see more that one shader for the same stage, and
add a corresponding comment. (Timothy Arceri)
v3:
* Adds also a linker error log to the condition above, with a
reference to the specification issue. (Timothy Arceri)
* Squash with the patch adding the function boilerplate (Timothy
Arceri)
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/glspirv.h')
-rw-r--r-- | src/mesa/main/glspirv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/glspirv.h b/src/mesa/main/glspirv.h index ba281f68bef..0f03b75c111 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, unsigned n, struct gl_shader **shaders, const void* binary, size_t length); +void +_mesa_spirv_link_shaders(struct gl_context *ctx, + struct gl_shader_program *prog); + /** * \name API functions */ |