tgsi: add option to dump floats as hex values
authorDave Airlie <airlied@gmail.com>
Mon, 16 Sep 2013 00:13:55 +0000 (10:13 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 23 Oct 2015 01:55:02 +0000 (11:55 +1000)
commit041081dc219dcf7f61748284033c6fd7627acc69
treed27eb91d8b2c0d77f633dc4408cb1a2864f5b259
parent231d53923918f4a885e74da0a063dcbf1a4353e3
tgsi: add option to dump floats as hex values

This adds support to the parser to accept hex values as floats,
and then adds support to the dumper to allow the user to select
to dump float as 32-bit hex numbers.

This is required to get accurate values for virgl use of TGSI.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_dump.c
src/gallium/auxiliary/tgsi/tgsi_dump.h
src/gallium/auxiliary/tgsi/tgsi_text.c