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:
@@ -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];
|
||||
|
||||
|
||||
@@ -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 }
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user