i965/fs: Use exec_size instead of force_uncompressed in dump_instruction
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Sep 2014 01:02:52 +0000 (18:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:15 +0000 (10:29 -0700)
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 2f4ce5b..1487e66 100644 (file)
@@ -3082,7 +3082,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
          fprintf(file, ".f0.%d", inst->flag_subreg);
       }
    }
-   fprintf(file, " ");
+   fprintf(file, "(%d) ", inst->exec_size);
 
 
    switch (inst->dst.file) {
@@ -3233,11 +3233,12 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
 
    fprintf(file, " ");
 
-   if (inst->force_uncompressed)
-      fprintf(file, "1sthalf ");
-
-   if (inst->force_sechalf)
-      fprintf(file, "2ndhalf ");
+   if (dispatch_width == 16 && inst->exec_size == 8) {
+      if (inst->force_sechalf)
+         fprintf(file, "2ndhalf ");
+      else
+         fprintf(file, "1sthalf ");
+   }
 
    fprintf(file, "\n");
 }