From 22d080b3acf93dc853f25d8258c1a2929604dbaa Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 17 Apr 2019 21:08:54 +0200 Subject: [PATCH] zink: store shader_info in zink_shader Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_compiler.c | 2 ++ src/gallium/drivers/zink/zink_compiler.h | 4 ++++ 2 files changed, 6 insertions(+) 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 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; -- 2.30.2