From: Erik Faye-Lund Date: Wed, 17 Apr 2019 19:08:54 +0000 (+0200) Subject: zink: store shader_info in zink_shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22d080b3acf93dc853f25d8258c1a2929604dbaa;p=mesa.git zink: store shader_info in zink_shader Acked-by: Jordan Justen --- 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;