intel/fs: Add support for printing half-float immediate values
v2: Remove offensive, extraneous 0 in hex constant. Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7650>
This commit is contained in:
parent
91f7e262e1
commit
50fef61fa5
|
@ -7328,6 +7328,9 @@ fs_visitor::dump_instruction(const backend_instruction *be_inst, FILE *file) con
|
||||||
break;
|
break;
|
||||||
case IMM:
|
case IMM:
|
||||||
switch (inst->src[i].type) {
|
switch (inst->src[i].type) {
|
||||||
|
case BRW_REGISTER_TYPE_HF:
|
||||||
|
fprintf(file, "%-ghf", _mesa_half_to_float(inst->src[i].ud & 0xffff));
|
||||||
|
break;
|
||||||
case BRW_REGISTER_TYPE_F:
|
case BRW_REGISTER_TYPE_F:
|
||||||
fprintf(file, "%-gf", inst->src[i].f);
|
fprintf(file, "%-gf", inst->src[i].f);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue