AGX_DBG_SYNCTVB = BITFIELD_BIT(13),
AGX_DBG_SMALLTILE = BITFIELD_BIT(14),
AGX_DBG_NOMSAA = BITFIELD_BIT(15),
+ AGX_DBG_NOSHADOW = BITFIELD_BIT(16),
};
/* Dummy partial declarations, pending real UAPI */
{"synctvb", AGX_DBG_SYNCTVB, "Synchronous TVB growth"},
{"smalltile", AGX_DBG_SMALLTILE,"Force 16x16 tiles"},
{"nomsaa", AGX_DBG_NOMSAA, "Force disable MSAA"},
+ {"noshadow", AGX_DBG_NOSHADOW, "Force disable resource shadowing"},
DEBUG_NAMED_VALUE_END
};
/* clang-format on */
struct agx_bo *old = rsrc->bo;
unsigned flags = old->flags;
+ if (dev->debug & AGX_DBG_NOSHADOW)
+ return false;
+
/* If a resource is (or could be) shared, shadowing would desync across
* processes. (It's also not what this path is for.)
*/