[Mesa-dev] [PATCH 16/23] i965/disasm: "Handle" Gen8+ HF/DF immediate cases.
Kristian Høgsberg
hoegsberg at gmail.com
Mon Jun 30 11:54:10 PDT 2014
On Sat, Jun 28, 2014 at 09:33:55PM -0700, Kenneth Graunke wrote:
> We should print something properly, but I'm not sure how to properly
> print an HF, and we don't have any DFs today to test with.
>
> This is at least better than the current Gen8 disassembler, which would
> simply assert fail.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>
> ---
> src/mesa/drivers/dri/i965/brw_disasm.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
> index 54435be..e2f2fd8 100644
> --- a/src/mesa/drivers/dri/i965/brw_disasm.c
> +++ b/src/mesa/drivers/dri/i965/brw_disasm.c
> @@ -981,6 +981,13 @@ imm(FILE *file, struct brw_context *brw, unsigned type, brw_inst *inst)
> break;
> case BRW_HW_REG_TYPE_F:
> format(file, "%-gF", brw_inst_imm_f(brw, inst));
> + break;
> + case GEN8_HW_REG_IMM_TYPE_DF:
> + string(file, "Double IMM");
> + break;
> + case GEN8_HW_REG_IMM_TYPE_HF:
> + string(file, "Half Float IMM");
> + break;
> }
> return 0;
> }
> --
> 2.0.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list