pan/bi: Add BIFROST_MESA_DEBUG=nosb option

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>
This commit is contained in:
Alyssa Rosenzweig 2022-02-18 16:41:24 -05:00 committed by Marge Bot
parent c81c022e66
commit 2e86767370
3 changed files with 6 additions and 0 deletions

View file

@ -65,6 +65,10 @@
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.

View file

@ -45,6 +45,7 @@ extern "C" {
#define BIFROST_DBG_NOVALIDATE 0x0080
#define BIFROST_DBG_NOOPT 0x0100
#define BIFROST_DBG_NOIDVS 0x0200
#define BIFROST_DBG_NOSB 0x0400
extern int bifrost_debug;

View file

@ -47,6 +47,7 @@ static const struct debug_named_value bifrost_debug_options[] = {
{"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
};