Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
---
 src/amd/common/ac_nir_to_llvm.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 61bbfade53..8e0da8ab23 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -68,7 +68,6 @@ struct nir_to_llvm_context {
        const struct ac_nir_compiler_options *options;
        struct ac_shader_variant_info *shader_info;
        struct ac_shader_abi abi;
-       struct ac_nir_context *nir;
 
        unsigned max_workgroup_size;
        LLVMContextRef context;
@@ -6672,9 +6671,6 @@ void ac_nir_translate(struct ac_llvm_context *ac, struct 
ac_shader_abi *abi,
        ctx.ac = *ac;
        ctx.abi = abi;
 
-       if (nctx)
-               nctx->nir = &ctx;
-
        ctx.stage = nir->info.stage;
 
        ctx.main_function = 
LLVMGetBasicBlockParent(LLVMGetInsertBlock(ctx.ac.builder));
@@ -6707,9 +6703,6 @@ void ac_nir_translate(struct ac_llvm_context *ac, struct 
ac_shader_abi *abi,
        ralloc_free(ctx.defs);
        ralloc_free(ctx.phis);
        ralloc_free(ctx.vars);
-
-       if (nctx)
-               nctx->nir = NULL;
 }
 
 static
@@ -7170,8 +7163,6 @@ void ac_create_gs_copy_shader(LLVMTargetMachineRef tm,
        nir_ctx.ac = ctx.ac;
        nir_ctx.abi = &ctx.abi;
 
-       ctx.nir = &nir_ctx;
-
        nir_foreach_variable(variable, &geom_shader->outputs) {
                scan_shader_output_decl(&ctx, variable, geom_shader, 
MESA_SHADER_VERTEX);
                handle_shader_output_decl(&nir_ctx, geom_shader, variable);
@@ -7179,8 +7170,6 @@ void ac_create_gs_copy_shader(LLVMTargetMachineRef tm,
 
        ac_gs_copy_shader_emit(&ctx);
 
-       ctx.nir = NULL;
-
        LLVMBuildRetVoid(ctx.ac.builder);
 
        ac_llvm_finalize_module(&ctx);
-- 
2.16.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to