diff options
author | Dave Airlie <airlied@redhat.com> | 2014-08-27 09:56:14 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-02-20 08:51:49 +1000 |
commit | fa43e0443e206740e219d45abefee65bdb2c3ecb (patch) | |
tree | 4cc94bf841c3c2ec4ead63821bb45b77ff61327f /src/gallium/include | |
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 <imirkin@alum.mit.edu>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 0e3f8965b69..fc41cc9fc06 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -228,6 +228,7 @@ struct tgsi_declaration_array { #define TGSI_IMM_FLOAT32 0 #define TGSI_IMM_UINT32 1 #define TGSI_IMM_INT32 2 +#define TGSI_IMM_FLOAT64 3 struct tgsi_immediate { |