i965/fs: Add 64-bit int immediate support to dump_instructions()
authorMatt Turner <mattst88@gmail.com>
Thu, 6 Sep 2018 18:15:55 +0000 (11:15 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 17 Oct 2018 00:48:17 +0000 (17:48 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_shader.h

index 23a25fedca57c20ab84dec3ca27cf10557259db6..69726ed70e8f62fa1897e7e33715e5efa6dc63c5 100644 (file)
@@ -6023,6 +6023,12 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
          case BRW_REGISTER_TYPE_UD:
             fprintf(file, "%uu", inst->src[i].ud);
             break;
+         case BRW_REGISTER_TYPE_Q:
+            fprintf(file, "%" PRId64 "q", inst->src[i].d64);
+            break;
+         case BRW_REGISTER_TYPE_UQ:
+            fprintf(file, "%" PRIu64 "uq", inst->src[i].u64);
+            break;
          case BRW_REGISTER_TYPE_VF:
             fprintf(file, "[%-gF, %-gF, %-gF, %-gF]",
                     brw_vf_to_float((inst->src[i].ud >>  0) & 0xff),
index 7d97ddbd86828507d6b4a8e8ecd6d7ddc1de9504..e1d598b87819c94921e3cc65a865529064d5c70d 100644 (file)
@@ -89,6 +89,8 @@ struct backend_reg : private brw_reg
    using brw_reg::f;
    using brw_reg::d;
    using brw_reg::ud;
+   using brw_reg::d64;
+   using brw_reg::u64;
 };
 #endif