zink: store shader_info in zink_shader
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 17 Apr 2019 19:08:54 +0000 (21:08 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:44 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_compiler.h

index 27a1e6e68f5db0c0a0897c51597e2d1a6128f645..1c3d53273211a7f6b6747a36d3d01ab61b2a4625 100644 (file)
@@ -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);
 
index 3e9b640a3a8a81f306fa1fab946296b9c602a363..47e5b4b7c480dcc473d19a399bce57017c20fd34 100644 (file)
@@ -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;