From: Matt Turner Date: Thu, 6 Sep 2018 18:15:55 +0000 (-0700) Subject: i965/fs: Add 64-bit int immediate support to dump_instructions() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58a51d0a67a00711c63ab28fcec7e1bb775c2097;p=mesa.git i965/fs: Add 64-bit int immediate support to dump_instructions() Reviewed-by: Jason Ekstrand Reviewed-by: Iago Toral Quiroga --- diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 23a25fedca5..69726ed70e8 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -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), diff --git a/src/intel/compiler/brw_shader.h b/src/intel/compiler/brw_shader.h index 7d97ddbd868..e1d598b8781 100644 --- a/src/intel/compiler/brw_shader.h +++ b/src/intel/compiler/brw_shader.h @@ -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