tu: Add debug flag to force disable FDM

Useful to check if a bug is caused by FDM.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35837>
This commit is contained in:
Connor Abbott
2025-06-30 12:30:12 -04:00
committed by Marge Bot
parent 750dd55a4a
commit 6579b378ca
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -516,6 +516,9 @@ tu_render_pass_calc_views(struct tu_render_pass *pass)
static bool
tu_render_pass_disable_fdm(struct tu_device *dev, struct tu_render_pass *pass)
{
if (TU_DEBUG(NOFDM))
return true;
for (uint32_t i = 0; i < pass->attachment_count; i++) {
struct tu_render_pass_attachment *att = &pass->attachments[i];
+1
View File
@@ -52,6 +52,7 @@ static const struct debug_control tu_debug_options[] = {
{ "fdmoffset", TU_DEBUG_FDM_OFFSET },
{ "check_cmd_buffer_status", TU_DEBUG_CHECK_CMD_BUFFER_STATUS },
{ "comm", TU_DEBUG_COMM },
{ "nofdm", TU_DEBUG_NOFDM },
{ NULL, 0 }
};
+1
View File
@@ -72,6 +72,7 @@ enum tu_debug_flags : uint64_t
TU_DEBUG_FDM_OFFSET = BITFIELD64_BIT(31),
TU_DEBUG_CHECK_CMD_BUFFER_STATUS = BITFIELD64_BIT(32),
TU_DEBUG_COMM = BITFIELD64_BIT(33),
TU_DEBUG_NOFDM = BITFIELD64_BIT(34),
};
struct tu_env {