To disable the new scoreboarding optimizations when debugging.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14298>
static bool
bi_should_serialize(bi_instr *I)
{
+ /* For debug, serialize everything to disable scoreboard opts */
+ if (bifrost_debug & BIFROST_DBG_NOSB)
+ return true;
+
/* Although nominally on the attribute unit, image loads have the same
* coherency requirements as general memory loads. Serialize them for
* now until we can do something more clever.
#define BIFROST_DBG_NOVALIDATE 0x0080
#define BIFROST_DBG_NOOPT 0x0100
#define BIFROST_DBG_NOIDVS 0x0200
+#define BIFROST_DBG_NOSB 0x0400
extern int bifrost_debug;
{"novalidate",BIFROST_DBG_NOVALIDATE, "Skip IR validation"},
{"noopt", BIFROST_DBG_NOOPT, "Skip optimization passes"},
{"noidvs", BIFROST_DBG_NOIDVS, "Disable IDVS"},
+ {"nosb", BIFROST_DBG_NOSB, "Disable scoreboarding"},
DEBUG_NAMED_VALUE_END
};