AGX_DBG_NOWC = BITFIELD_BIT(12),
AGX_DBG_SYNCTVB = BITFIELD_BIT(13),
AGX_DBG_SMALLTILE = BITFIELD_BIT(14),
+ AGX_DBG_NOMSAA = BITFIELD_BIT(15),
};
/* Dummy partial declarations, pending real UAPI */
{"nowc", AGX_DBG_NOWC, "Disable write-combining"},
{"synctvb", AGX_DBG_SYNCTVB, "Synchronous TVB growth"},
{"smalltile", AGX_DBG_SMALLTILE,"Force 16x16 tiles"},
+ {"nomsaa", AGX_DBG_NOMSAA, "Force disable MSAA"},
DEBUG_NAMED_VALUE_END
};
/* clang-format on */
if (sample_count > 1 && sample_count != 4 && sample_count != 2)
return false;
+ if (sample_count > 1 && agx_device(pscreen)->debug & AGX_DBG_NOMSAA)
+ return false;
+
if (MAX2(sample_count, 1) != MAX2(storage_sample_count, 1))
return false;