diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-02 20:51:03 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-05 14:35:38 +0000 |
commit | bbf41ffb00d8d78db1cf43403ab7f6af5a2f9ec3 (patch) | |
tree | 3f373c26342e15b4cec639a34002dc111bea0623 /src/panfrost/bifrost/disassemble.c | |
parent | 34165c7ec0fb3a0a07f3a1ede833b8bbf336e44a (diff) |
pan/bi: Factor out enum bifrost_minmax_mode
We'll want it from the compiler-side.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
Diffstat (limited to 'src/panfrost/bifrost/disassemble.c')
-rw-r--r-- | src/panfrost/bifrost/disassemble.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index 975d88bf383..f16f96cd73b 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -439,20 +439,20 @@ static void dump_output_mod(FILE *fp, unsigned mod) static void dump_minmax_mode(FILE *fp, unsigned mod) { switch (mod) { - case 0: + case BIFROST_MINMAX_NONE: /* Same as fmax() and fmin() -- return the other number if any * number is NaN. Also always return +0 if one argument is +0 and * the other is -0. */ break; - case 1: + case BIFROST_NAN_WINS: /* Instead of never returning a NaN, always return one. The * "greater"/"lesser" NaN is always returned, first by checking the * sign and then the mantissa bits. */ fprintf(fp, ".nan_wins"); break; - case 2: + case BIFROST_SRC1_WINS: /* For max, implement src0 > src1 ? src0 : src1 * For min, implement src0 < src1 ? src0 : src1 * @@ -463,7 +463,7 @@ static void dump_minmax_mode(FILE *fp, unsigned mod) */ fprintf(fp, ".src1_wins"); break; - case 3: + case BIFROST_SRC0_WINS: /* For max, implement src0 < src1 ? src1 : src0 * For min, implement src0 > src1 ? src1 : src0 */ |