intel/brw: Print W/UW immediates correctly
We were printing 24w as 0x180018d which not only scarily shows the wrong type, but also the replicated format of the word. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28971>
This commit is contained in:
@@ -2599,10 +2599,14 @@ fs_visitor::dump_instruction_to_file(const fs_inst *inst, FILE *file) const
|
||||
fprintf(file, "%fdf", inst->src[i].df);
|
||||
break;
|
||||
case BRW_TYPE_W:
|
||||
fprintf(file, "%dw", (int)(int16_t)inst->src[i].d);
|
||||
break;
|
||||
case BRW_TYPE_D:
|
||||
fprintf(file, "%dd", inst->src[i].d);
|
||||
break;
|
||||
case BRW_TYPE_UW:
|
||||
fprintf(file, "%duw", inst->src[i].ud & 0xffff);
|
||||
break;
|
||||
case BRW_TYPE_UD:
|
||||
fprintf(file, "%uu", inst->src[i].ud);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user