summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/zink/zink_compiler.c2
-rw-r--r--src/gallium/drivers/zink/zink_compiler.h4
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;