diff options
author | Ian Romanick <[email protected]> | 2016-09-01 14:17:49 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2017-01-20 15:41:23 -0800 |
commit | 3ca0029a0dc7b2ed2c61de72ef16e7ad1831c101 (patch) | |
tree | cf1a0d42b9ee355d0ca9df787a8a6fba0a924348 /src/compiler/nir/nir_print.c | |
parent | 48e122244b05415204ef28107286d099f17da56b (diff) |
nir: Add 64-bit integer constant support
v2: Rebase on 19a541f (nir: Get rid of nir_constant_data)
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Connor Abbott <[email protected]> [v1]
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r-- | src/compiler/nir/nir_print.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 8a3d734669a..af105557123 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -330,6 +330,17 @@ print_constant(nir_constant *c, const struct glsl_type *type, print_state *state } break; + case GLSL_TYPE_UINT64: + case GLSL_TYPE_INT64: + /* Only float base types can be matrices. */ + assert(cols == 1); + + for (i = 0; i < cols; i++) { + if (i > 0) fprintf(fp, ", "); + fprintf(fp, "0x%08" PRIx64, c->values[0].u64[i]); + } + break; + case GLSL_TYPE_STRUCT: for (i = 0; i < c->num_elements; i++) { if (i > 0) fprintf(fp, ", "); |