diff options
author | Dave Airlie <[email protected]> | 2013-09-16 10:13:55 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-10-23 11:55:02 +1000 |
commit | 041081dc219dcf7f61748284033c6fd7627acc69 (patch) | |
tree | d27eb91d8b2c0d77f633dc4408cb1a2864f5b259 /src/gallium/auxiliary/tgsi/tgsi_dump.h | |
parent | 231d53923918f4a885e74da0a063dcbf1a4353e3 (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_dump.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_dump.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.h b/src/gallium/auxiliary/tgsi/tgsi_dump.h index 7c8f92ee7bc..6666b983e9c 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_dump.h +++ b/src/gallium/auxiliary/tgsi/tgsi_dump.h @@ -38,6 +38,8 @@ extern "C" { #endif +#define TGSI_DUMP_FLOAT_AS_HEX (1 << 0) + void tgsi_dump_str( const struct tgsi_token *tokens, |