pan/midgard: Identify clamp(x, -1.0, 1.0) flag

So *that's* what's .unk2 was about :)

We still need to add an opt pass for it, but we can do that further down
the line.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3892>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3892>
This commit is contained in:
Alyssa Rosenzweig
2020-02-20 07:41:26 -05:00
committed by Marge Bot
parent 0263d2793c
commit cc3d29c6e7
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ print_reg(FILE *fp, unsigned reg, unsigned bits)
static char *outmod_names_float[4] = {
"",
".pos",
".unk2",
".one",
".sat"
};
+3 -3
View File
@@ -207,9 +207,9 @@ typedef enum {
typedef enum {
midgard_outmod_none = 0,
midgard_outmod_pos = 1,
/* 0x2 unknown */
midgard_outmod_sat = 3
midgard_outmod_pos = 1, /* max(x, 0.0) */
midgard_outmod_one = 2, /* clamp(x, -1.0, 1.0) */
midgard_outmod_sat = 3 /* clamp(x, 0.0, 1.0) */
} midgard_outmod_float;
typedef enum {