i965: Rename brw_disasm/gen8_disassemble to brw/gen8_disassemble_inst.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 15 May 2014 23:02:16 +0000 (16:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 May 2014 06:35:17 +0000 (23:35 -0700)
We're going to use "disassemble" for the function that disassembles
the whole program.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_disasm.c
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_eu_compact.c
src/mesa/drivers/dri/i965/gen8_disasm.c
src/mesa/drivers/dri/i965/gen8_generator.cpp
src/mesa/drivers/dri/i965/gen8_instruction.h

index 9e459cd8dba37842be2e52a91344ac117dc32d1c..283c576721107c8b237ad271a7da65b55e80ef03 100644 (file)
@@ -1573,7 +1573,8 @@ void brw_fs_alloc_reg_sets(struct intel_screen *screen);
 void brw_vec4_alloc_reg_set(struct intel_screen *screen);
 
 /* brw_disasm.c */
-int brw_disasm (FILE *file, struct brw_instruction *inst, int gen, bool is_compacted);
+int brw_disassemble_inst(FILE *file, struct brw_instruction *inst,
+                         int gen, bool is_compacted);
 
 /* brw_vs.c */
 gl_clip_plane *brw_select_clip_planes(struct gl_context *ctx);
index 1de02e9382b55acce56743985bb65749fa3ee734..68fb786ef2a32f416ff96c8bf477ee77b5b80d3c 100644 (file)
@@ -1119,7 +1119,9 @@ static int qtr_ctrl(FILE *file, struct brw_instruction *inst)
     return 0;
 }
 
-int brw_disasm (FILE *file, struct brw_instruction *inst, int gen, bool is_compacted)
+int
+brw_disassemble_inst(FILE *file,
+                     struct brw_instruction *inst, int gen, bool is_compacted)
 {
     int        err = 0;
     int space = 0;
index 90e84f866cd24c17b8d6352f6841313590e72f0c..a97ea352c7ab09bca29921ea6662931dd9df8cae 100644 (file)
@@ -286,6 +286,6 @@ brw_dump_compile(struct brw_context *brw, void *assembly, int start, int end, FI
         offset += 16;
       }
 
-      brw_disasm(out, insn, brw->gen, compacted);
+      brw_disassemble_inst(out, insn, brw->gen, compacted);
    }
 }
index 2667ca60c50c23971dc1be5a9a76af1853068a61..ade27c8adeefe2678e65c7c852dbf3738a997abd 100644 (file)
@@ -585,10 +585,10 @@ void brw_debug_compact_uncompact(struct brw_context *brw,
            brw->gen);
 
    fprintf(stderr, "  before: ");
-   brw_disasm(stderr, orig, brw->gen, true);
+   brw_disassemble_inst(stderr, orig, brw->gen, true);
 
    fprintf(stderr, "  after:  ");
-   brw_disasm(stderr, uncompacted, brw->gen, false);
+   brw_disassemble_inst(stderr, uncompacted, brw->gen, false);
 
    uint32_t *before_bits = (uint32_t *)orig;
    uint32_t *after_bits = (uint32_t *)uncompacted;
index ba9f1ac4842b157c8f00a8bd66615ae9cca34c71..04f8538de1fcee976a93537f3715f4dc94953453 100644 (file)
@@ -806,7 +806,7 @@ qtr_ctrl(FILE *file, struct gen8_instruction *inst)
 }
 
 int
-gen8_disassemble(FILE *file, struct gen8_instruction *inst, int gen)
+gen8_disassemble_inst(FILE *file, struct gen8_instruction *inst, int gen)
 {
    int err = 0;
    int space = 0;
index 774df183ff53cb2d84ef5736818e2a26d2fd41ea..f6d852968a57dcdcd515ab49f787711a7893a0fd 100644 (file)
@@ -638,6 +638,6 @@ gen8_dump_compile(struct brw_context *brw, void *assembly,
                  ((uint32_t *) inst)[0]);
       }
 
-      gen8_disassemble(stderr, inst, brw->gen);
+      gen8_disassemble_inst(stderr, inst, brw->gen);
    }
 }
index 89f23644e27be9ce11088a162f8161aa62824c5a..ca536ef93181f57ee4d1d6f99e9b3acc08a80a8d 100644 (file)
@@ -367,7 +367,7 @@ void gen8_set_dp_scratch_message(const struct brw_context *brw,
                                  bool end_of_thread);
 
 /** Disassemble the instruction. */
-int gen8_disassemble(FILE *file, struct gen8_instruction *inst, int gen);
+int gen8_disassemble_inst(FILE *file, struct gen8_instruction *inst, int gen);
 
 
 /**