diff options
author | Erik Faye-Lund <[email protected]> | 2019-04-17 21:08:54 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:44 +0000 |
commit | 22d080b3acf93dc853f25d8258c1a2929604dbaa (patch) | |
tree | 923e342b8be26731c14e684efb83637c4c7f4dc1 /src/gallium/drivers/zink | |
parent | ce6f19c4ec448cfe17ac1d4b490c6388a1c1bd9d (diff) |
zink: store shader_info in zink_shader
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/zink')
-rw-r--r-- | src/gallium/drivers/zink/zink_compiler.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/zink/zink_compiler.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index 27a1e6e68f5..1c3d5327321 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -330,6 +330,8 @@ zink_compile_nir(struct zink_screen *screen, struct nir_shader *nir) } } + ret->info = nir->info; + struct spirv_shader *spirv = nir_to_spirv(nir); assert(spirv); diff --git a/src/gallium/drivers/zink/zink_compiler.h b/src/gallium/drivers/zink/zink_compiler.h index 3e9b640a3a8..47e5b4b7c48 100644 --- a/src/gallium/drivers/zink/zink_compiler.h +++ b/src/gallium/drivers/zink/zink_compiler.h @@ -27,6 +27,8 @@ #include "pipe/p_defines.h" #include "pipe/p_state.h" +#include "compiler/shader_info.h" + #include <vulkan/vulkan.h> struct pipe_screen; @@ -48,6 +50,8 @@ zink_tgsi_to_nir(struct pipe_screen *screen, const struct tgsi_token *tokens); struct zink_shader { VkShaderModule shader_module; + shader_info info; + struct { int index; int binding; |