<div dir="auto">Reviewed-by: Bas Nieuwenhuizen <<a href="mailto:bas@basnieuwenhuizen.nl">bas@basnieuwenhuizen.nl</a>></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 Dec 2016 1:56 AM, "Dave Airlie" <<a href="mailto:airlied@gmail.com">airlied@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
<br>
We don't use the nir shader in here at all.<br>
<br>
Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
---<br>
 src/amd/common/ac_nir_to_llvm.<wbr>c | 15 ++++++---------<br>
 1 file changed, 6 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/src/amd/common/ac_nir_to_<wbr>llvm.c b/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
index bb52e8f..f5f78a3 100644<br>
--- a/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
+++ b/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
@@ -4369,8 +4369,7 @@ si_llvm_init_export_args(<wbr>struct nir_to_llvm_context *ctx,<br>
 }<br>
<br>
 static void<br>
-handle_vs_outputs_post(struct nir_to_llvm_context *ctx,<br>
-                     struct nir_shader *nir)<br>
+handle_vs_outputs_post(struct nir_to_llvm_context *ctx)<br>
 {<br>
        uint32_t param_count = 0;<br>
        unsigned target;<br>
@@ -4572,8 +4571,7 @@ si_export_mrt_z(struct nir_to_llvm_context *ctx,<br>
 }<br>
<br>
 static void<br>
-handle_fs_outputs_post(struct nir_to_llvm_context *ctx,<br>
-                      struct nir_shader *nir)<br>
+handle_fs_outputs_post(struct nir_to_llvm_context *ctx)<br>
 {<br>
        unsigned index = 0;<br>
        LLVMValueRef depth = NULL, stencil = NULL, samplemask = NULL;<br>
@@ -4615,15 +4613,14 @@ handle_fs_outputs_post(struct nir_to_llvm_context *ctx,<br>
 }<br>
<br>
 static void<br>
-handle_shader_outputs_post(<wbr>struct nir_to_llvm_context *ctx,<br>
-                          struct nir_shader *nir)<br>
+handle_shader_outputs_post(<wbr>struct nir_to_llvm_context *ctx)<br>
 {<br>
        switch (ctx->stage) {<br>
        case MESA_SHADER_VERTEX:<br>
-               handle_vs_outputs_post(ctx, nir);<br>
+               handle_vs_outputs_post(ctx);<br>
                break;<br>
        case MESA_SHADER_FRAGMENT:<br>
-               handle_fs_outputs_post(ctx, nir);<br>
+               handle_fs_outputs_post(ctx);<br>
                break;<br>
        default:<br>
                break;<br>
@@ -4741,7 +4738,7 @@ LLVMModuleRef ac_translate_nir_to_llvm(<wbr>LLVMTargetMachineRef tm,<br>
        visit_cf_list(&ctx, &func->impl->body);<br>
        phi_post_pass(&ctx);<br>
<br>
-       handle_shader_outputs_post(&<wbr>ctx, nir);<br>
+       handle_shader_outputs_post(&<wbr>ctx);<br>
        LLVMBuildRetVoid(ctx.builder);<br>
<br>
        ac_llvm_finalize_module(&ctx);<br>
--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>