i965: Rename brw/gen8_dump_compile to brw/gen8_disassemble.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 15 May 2014 23:10:09 +0000 (16:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 May 2014 06:35:18 +0000 (23:35 -0700)
"Disassemble" is an accurate description of what this function does.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
14 files changed:
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
src/mesa/drivers/dri/i965/brw_clip.c
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_compact.c
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_sf.c
src/mesa/drivers/dri/i965/brw_state_dump.c
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/gen8_fs_generator.cpp
src/mesa/drivers/dri/i965/gen8_generator.cpp
src/mesa/drivers/dri/i965/gen8_generator.h
src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp

index 2bb08de447ee7ee77958c30895b3e346abcf0f83..28c01c440bdc300e1bb19385e2d39c1ceff4b7ed 100644 (file)
@@ -486,7 +486,7 @@ brw_blorp_const_color_program::compile(struct brw_context *brw,
 
    if (unlikely(INTEL_DEBUG & DEBUG_BLORP)) {
       fprintf(stderr, "Native code for BLORP clear:\n");
-      brw_dump_compile(brw, &func.store, 0, func.next_insn_offset, stderr);
+      brw_disassemble(brw, &func.store, 0, func.next_insn_offset, stderr);
       fprintf(stderr, "\n");
    }
 
index a164d15998e4b83ca37184e7bfb9782c4dea0810..11f0b6938f59179b8a40c37f2e842e15d267f8e3 100644 (file)
@@ -118,7 +118,7 @@ static void compile_clip_prog( struct brw_context *brw,
 
    if (unlikely(INTEL_DEBUG & DEBUG_CLIP)) {
       fprintf(stderr, "clip:\n");
-      brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
+      brw_disassemble(brw, c.func.store, 0, program_size, stderr);
       fprintf(stderr, "\n");
    }
 
index a97ea352c7ab09bca29921ea6662931dd9df8cae..4efc1f45a60a77c4ee0c79d9a5c0f9a57d91928d 100644 (file)
@@ -254,7 +254,8 @@ const unsigned *brw_get_program( struct brw_compile *p,
 }
 
 void
-brw_dump_compile(struct brw_context *brw, void *assembly, int start, int end, FILE *out)
+brw_disassemble(struct brw_context *brw,
+                void *assembly, int start, int end, FILE *out)
 {
    bool dump_hex = false;
 
index 75ceec2fcb1a912615627a75047da9eb28d51b34..51d5214ae89bf513e84948f764e4bdf92bc0b413 100644 (file)
@@ -105,8 +105,8 @@ void brw_set_acc_write_control(struct brw_compile *p, unsigned value);
 
 void brw_init_compile(struct brw_context *, struct brw_compile *p,
                      void *mem_ctx);
-void brw_dump_compile(struct brw_context *brw, void *assembly,
-                      int start,int end, FILE *out);
+void brw_disassemble(struct brw_context *brw, void *assembly,
+                     int start, int end, FILE *out);
 const unsigned *brw_get_program( struct brw_compile *p, unsigned *sz );
 
 struct brw_instruction *brw_next_insn(struct brw_compile *p, unsigned opcode);
index ade27c8adeefe2678e65c7c852dbf3738a997abd..c85bc89ea3d083ddba52c05e346e390cac0f61b6 100644 (file)
@@ -786,7 +786,7 @@ brw_compact_instructions(struct brw_compile *p)
 
    if (0) {
       fprintf(stderr, "dumping compacted program\n");
-      brw_dump_compile(brw, p->store, 0, p->next_insn_offset, stderr);
+      brw_disassemble(brw, p->store, 0, p->next_insn_offset, stderr);
 
       int cmp = 0;
       for (offset = 0; offset < p->next_insn_offset;) {
index f8819da68f584253b7f0f99441e0682dfd2c69b2..6007b5746eb37cf0db319dcf18f22fab35e1087d 100644 (file)
@@ -1802,7 +1802,7 @@ fs_generator::generate_code(exec_list *instructions, FILE *dump_file)
       }
 
       if (unlikely(INTEL_DEBUG & DEBUG_WM)) {
-        brw_dump_compile(brw, p->store, last_native_insn_offset, p->next_insn_offset, stderr);
+        brw_disassemble(brw, p->store, last_native_insn_offset, p->next_insn_offset, stderr);
 
         foreach_list(node, &cfg->block_list) {
            bblock_link *link = (bblock_link *)node;
@@ -1836,7 +1836,7 @@ fs_generator::generate_code(exec_list *instructions, FILE *dump_file)
     * case you're doing that.
     */
    if (dump_file) {
-      brw_dump_compile(brw, p->store, 0, p->next_insn_offset, dump_file);
+      brw_disassemble(brw, p->store, 0, p->next_insn_offset, dump_file);
    }
 }
 
index 72e5f5a14a859ef768e9d4484d1fb1bfeaa15587..ec1e14a3594e9772ad15224b9330b612c1863a5e 100644 (file)
@@ -136,7 +136,7 @@ static void compile_ff_gs_prog(struct brw_context *brw,
 
    if (unlikely(INTEL_DEBUG & DEBUG_GS)) {
       fprintf(stderr, "gs:\n");
-      brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
+      brw_disassemble(brw, c.func.store, 0, program_size, stderr);
       fprintf(stderr, "\n");
     }
 
index 5556c46d377760e2803e4c430c49d6a8ac3d1007..152d258cc2f072a517bf2cc646c6e1c18e925331 100644 (file)
@@ -117,7 +117,7 @@ static void compile_sf_prog( struct brw_context *brw,
 
    if (unlikely(INTEL_DEBUG & DEBUG_SF)) {
       fprintf(stderr, "sf:\n");
-      brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
+      brw_disassemble(brw, c.func.store, 0, program_size, stderr);
       fprintf(stderr, "\n");
    }
 
index 5cc5ac6a8a5712e6d5bd9ee2f4e489f9f6c2e3dc..f0f185b0f87ad3e921a506b1aec9562417661ab3 100644 (file)
@@ -522,8 +522,8 @@ dump_prog_cache(struct brw_context *brw)
         }
 
          fprintf(stderr, "%s:\n", name);
-         brw_dump_compile(brw, brw->cache.bo->virtual, item->offset, item->size,
-                          stderr);
+         brw_disassemble(brw, brw->cache.bo->virtual, item->offset, item->size,
+                         stderr);
       }
    }
 
index cd9c562e708dc357769f741f685acc11566d200a..4e0fe52ae2c67bf14cc4f40065fb7c217191a915 100644 (file)
@@ -1334,8 +1334,8 @@ vec4_generator::generate_code(exec_list *instructions)
       }
 
       if (unlikely(debug_flag)) {
-        brw_dump_compile(brw, p->store,
-                         last_native_insn_offset, p->next_insn_offset, stderr);
+        brw_disassemble(brw, p->store,
+                        last_native_insn_offset, p->next_insn_offset, stderr);
       }
 
       last_native_insn_offset = p->next_insn_offset;
@@ -1353,7 +1353,7 @@ vec4_generator::generate_code(exec_list *instructions)
     * case you're doing that.
     */
    if (0 && unlikely(debug_flag)) {
-      brw_dump_compile(brw, p->store, 0, p->next_insn_offset, stderr);
+      brw_disassemble(brw, p->store, 0, p->next_insn_offset, stderr);
    }
 }
 
index d25da817062f33b83cbe7742a7b2cb2482471721..228de0cd88564cfebbd90eb02795389ef4169eb0 100644 (file)
@@ -1293,7 +1293,7 @@ gen8_fs_generator::generate_code(exec_list *instructions)
       }
 
       if (unlikely(INTEL_DEBUG & DEBUG_WM)) {
-         gen8_dump_compile(brw, store, last_native_inst_offset, next_inst_offset, stderr);
+         gen8_disassemble(brw, store, last_native_inst_offset, next_inst_offset, stderr);
 
          foreach_list(node, &cfg->block_list) {
             bblock_link *link = (bblock_link *)node;
@@ -1327,7 +1327,7 @@ gen8_fs_generator::generate_code(exec_list *instructions)
     * case you're doing that.
     */
    if (0 && unlikely(INTEL_DEBUG & DEBUG_WM)) {
-      gen8_dump_compile(brw, store, 0, next_inst_offset, stderr);
+      gen8_disassemble(brw, store, 0, next_inst_offset, stderr);
    }
 }
 
index f6d852968a57dcdcd515ab49f787711a7893a0fd..2a9bf83ee409cc22a29e35e801e5310d82dfe022 100644 (file)
@@ -621,8 +621,8 @@ gen8_generator::HALT()
 }
 
 extern "C" void
-gen8_dump_compile(struct brw_context *brw, void *assembly,
-                  int start,int end, FILE *out)
+gen8_disassemble(struct brw_context *brw, void *assembly,
+                 int start, int end, FILE *out)
 {
    bool dump_hex = false;
 
index b6ed24c1f33ecd552dc099f7981d3a5435fdb3d6..cdb2741d87ee72e655ed4242cb8d97118f3c8fa4 100644 (file)
@@ -196,5 +196,5 @@ protected:
 };
 
 extern "C" void
-gen8_dump_compile(struct brw_context *brw, void *assembly,
-                  int start,int end, FILE *out);
+gen8_disassemble(struct brw_context *brw, void *assembly,
+                 int start, int end, FILE *out);
index 0c54e6ddd749d5aa9a865b74853bb91bb7be564e..e53fd35fb607c7d800d54c67b55cbc6a97d93263 100644 (file)
@@ -910,7 +910,7 @@ gen8_vec4_generator::generate_code(exec_list *instructions)
       }
 
       if (unlikely(debug_flag)) {
-         gen8_dump_compile(brw, store, last_native_inst_offset, next_inst_offset, stderr);
+         gen8_disassemble(brw, store, last_native_inst_offset, next_inst_offset, stderr);
       }
 
       last_native_inst_offset = next_inst_offset;
@@ -928,7 +928,7 @@ gen8_vec4_generator::generate_code(exec_list *instructions)
     * case you're doing that.
     */
    if (0 && unlikely(debug_flag)) {
-      gen8_dump_compile(brw, store, 0, next_inst_offset, stderr);
+      gen8_disassemble(brw, store, 0, next_inst_offset, stderr);
    }
 }