diff options
author | Dave Airlie <[email protected]> | 2014-08-27 09:56:14 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-02-20 08:51:49 +1000 |
commit | fa43e0443e206740e219d45abefee65bdb2c3ecb (patch) | |
tree | 4cc94bf841c3c2ec4ead63821bb45b77ff61327f /src/gallium/auxiliary/tgsi/tgsi_strings.c | |
parent | 3cd1338534374c8ed13651548dcbf3949857dbcd (diff) |
tgsi: add support for flt64 constants
These act like flt32 except they take up two slots, and you
can only add 2 x flt64 constants in one slot.
The main reason they are different is we don't want to match half a flt64
constants against a flt32 constant in the matching code, we need to make
sure we treat both parts of the flt64 as an single structure.
Cleaned up printing/parsing by Ilia Mirkin <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_strings.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_strings.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index bd975448773..9b727cf9a81 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_strings.c +++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c @@ -181,11 +181,12 @@ const char *tgsi_fs_coord_pixel_center_names[2] = "INTEGER" }; -const char *tgsi_immediate_type_names[3] = +const char *tgsi_immediate_type_names[4] = { "FLT32", "UINT32", - "INT32" + "INT32", + "FLT64" }; |