hk: add noborder perf test

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
Alyssa Rosenzweig 2024-09-17 20:54:44 -04:00 committed by Marge Bot
parent f7c1097e7b
commit f7d3cd0a3e
3 changed files with 6 additions and 2 deletions

View file

@ -64,6 +64,7 @@ static const struct debug_named_value agx_debug_options[] = {
{"feedback", AGX_DBG_FEEDBACK, "Debug feedback loops"},
{"nomsaa", AGX_DBG_NOMSAA, "Force disable MSAA"},
{"noshadow", AGX_DBG_NOSHADOW, "Force disable resource shadowing"},
{"noborder", AGX_DBG_NOBORDER, "Disable custom border colour emulation"},
{"scratch", AGX_DBG_SCRATCH, "Debug scratch memory usage"},
{"1queue", AGX_DBG_1QUEUE, "Force usage of a single queue for multiple contexts"},
DEBUG_NAMED_VALUE_END

View file

@ -44,7 +44,7 @@ enum agx_dbg {
AGX_DBG_SMALLTILE = BITFIELD_BIT(14),
AGX_DBG_NOMSAA = BITFIELD_BIT(15),
AGX_DBG_NOSHADOW = BITFIELD_BIT(16),
/* bit 17 unused */
AGX_DBG_NOBORDER = BITFIELD_BIT(17),
AGX_DBG_SCRATCH = BITFIELD_BIT(18),
/* bit 19 unused */
AGX_DBG_FEEDBACK = BITFIELD_BIT(20),

View file

@ -597,7 +597,10 @@ hk_lower_nir(struct hk_device *dev, nir_shader *nir,
* create lod_bias_agx instructions.
*/
NIR_PASS(_, nir, agx_nir_lower_texture_early, true /* support_lod_bias */);
NIR_PASS(_, nir, agx_nir_lower_custom_border);
if (!(dev->dev.debug & AGX_DBG_NOBORDER)) {
NIR_PASS(_, nir, agx_nir_lower_custom_border);
}
NIR_PASS(_, nir, hk_nir_lower_descriptors, rs, set_layout_count,
set_layouts);