ac/nir: remove unused nir_to_llvm_context::has_ddxy
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 24 Jun 2017 19:06:34 +0000 (21:06 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 27 Jun 2017 00:28:30 +0000 (10:28 +1000)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c

index aec5d39e53e36c833eff9bcab7b8cfa03d84553d..67df46a7afb8076fd1d6b050462983888fbfb6b0 100644 (file)
@@ -160,7 +160,6 @@ struct nir_to_llvm_context {
        uint64_t output_mask;
        int num_locals;
        LLVMValueRef *locals;
-       bool has_ddxy;
        uint8_t num_output_clips;
        uint8_t num_output_culls;
 
@@ -1455,7 +1454,6 @@ static LLVMValueRef emit_ddxy(struct nir_to_llvm_context *ctx,
        unsigned mask;
        int idx;
        LLVMValueRef result;
-       ctx->has_ddxy = true;
 
        if (!ctx->lds && !ctx->has_ds_bpermute)
                ctx->lds = LLVMAddGlobalInAddressSpace(ctx->module,