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:
committed by
Marge Bot
parent
0263d2793c
commit
cc3d29c6e7
@@ -140,7 +140,7 @@ print_reg(FILE *fp, unsigned reg, unsigned bits)
|
||||
static char *outmod_names_float[4] = {
|
||||
"",
|
||||
".pos",
|
||||
".unk2",
|
||||
".one",
|
||||
".sat"
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user