From 4bb4be50b93b9de22af342da4589798345d401b8 Mon Sep 17 00:00:00 2001 From: nmzik Date: Wed, 21 Oct 2026 04:31:11 +0200 Subject: [PATCH] agc: remove count-limited logging and register trace --- src/libs/agc.cpp | 85 ------------------------------------------------ 1 file changed, 85 deletions(-) diff --git a/src/libs/agc.cpp b/src/libs/agc.cpp index a29801fdf..e7460979a 100644 --- a/src/libs/agc.cpp +++ b/src/libs/agc.cpp @@ -1439,14 +1439,6 @@ int KYTY_SYSV_ABI AgcCreateInterpolantMapping2(ShaderRegister* regs, const Shade int KYTY_SYSV_ABI AgcGetDataPacketPayloadAddress(uint32_t** addr, uint32_t* cmd, int type) { PRINT_NAME(); - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t addr = 0x%016" PRIx64 "\n" - "\t cmd = 0x%016" PRIx64 "\n" - "\t type = %d\n", - reinterpret_cast(addr), reinterpret_cast(cmd), type); - } - EXIT_NOT_IMPLEMENTED(addr == nullptr); if (type != 0) { @@ -1463,20 +1455,10 @@ int KYTY_SYSV_ABI AgcGetDataPacketPayloadAddress(uint32_t** addr, uint32_t* cmd, int KYTY_SYSV_ABI AgcGetDataPacketPayloadRange(MemoryRange* range, uint32_t* cmd, int type) { PRINT_NAME(); - static std::atomic log_count {0}; - const bool should_log = (log_count.fetch_add(1) < 64); - if (should_log) { - LOGF("\t range = 0x%016" PRIx64 "\n" - "\t cmd = 0x%016" PRIx64 "\n" - "\t type = %d\n", - reinterpret_cast(range), reinterpret_cast(cmd), type); - } - EXIT_NOT_IMPLEMENTED(range == nullptr); EXIT_NOT_IMPLEMENTED(cmd == nullptr); const auto cmd_id = cmd[0]; - const auto len = KYTY_PM4_LEN(cmd_id); if (type != 0) { range->m_base = cmd + 2; @@ -1491,13 +1473,6 @@ int KYTY_SYSV_ABI AgcGetDataPacketPayloadRange(MemoryRange* range, uint32_t* cmd } } - if (should_log) { - LOGF("\t cmd_id = 0x%08" PRIx32 ", len = %" PRIu32 "\n" - "\t base = 0x%016" PRIx64 "\n" - "\t size = 0x%016" PRIx64 "\n", - cmd_id, len, reinterpret_cast(range->m_base), range->m_size); - } - return OK; } @@ -1746,15 +1721,6 @@ uint32_t* KYTY_SYSV_ABI AgcCbDispatch(CommandBuffer* buf, uint32_t thread_group_ uint32_t modifier) { PRINT_NAME(); - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t thread_group_x = %" PRIu32 "\n" - "\t thread_group_y = %" PRIu32 "\n" - "\t thread_group_z = %" PRIu32 "\n" - "\t modifier = 0x%08" PRIx32 "\n", - thread_group_x, thread_group_y, thread_group_z, modifier); - } - if (buf == nullptr) { return nullptr; } @@ -1862,16 +1828,6 @@ uint32_t* KYTY_SYSV_ABI AgcCbSetShRegisterRangeDirect(CommandBuffer* buf, uint32 const uint32_t* values, uint32_t num_values) { PRINT_NAME(); - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t buf = 0x%016" PRIx64 "\n" - "\t offset = %" PRIx32 "\n" - "\t values = 0x%016" PRIx64 "\n" - "\t num_values = %" PRIu32 "\n", - reinterpret_cast(buf), offset, reinterpret_cast(values), - num_values); - } - EXIT_NOT_IMPLEMENTED(buf == nullptr); auto* cmd = buf->AllocateDW(num_values + 2); @@ -1902,12 +1858,6 @@ uint32_t KYTY_SYSV_ABI AgcCbSetShRegisterRangeDirectGetSize(uint32_t num_values) uint32_t* KYTY_SYSV_ABI AgcCbSetShRegistersDirect(CommandBuffer* buf, const volatile ShaderRegister* regs, uint32_t num_regs) { - PRINT_NAME(); - - AgcTrace("\t regs = 0x%016" PRIx64 "\n" - "\t num_regs = %" PRIu32 "\n", - reinterpret_cast(regs), num_regs); - if (num_regs == 0) { return nullptr; } @@ -2047,23 +1997,6 @@ uint32_t* KYTY_SYSV_ABI AgcCbReleaseMem(CommandBuffer* buf, uint8_t action, uint uint8_t interrupt, uint32_t interrupt_ctx_id) { PRINT_NAME(); - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t action = 0x%02" PRIx8 "\n" - "\t gcr_cntl = 0x%04" PRIx16 "\n" - "\t dst = %" PRIu8 "\n" - "\t cache_policy = 0x%02" PRIx8 "\n" - "\t address = 0x%016" PRIx64 "\n" - "\t data_sel = 0x%02" PRIx8 "\n" - "\t data = 0x%016" PRIx64 "\n" - "\t gds_offset = %" PRIu16 "\n" - "\t gds_size = %" PRIu16 "\n" - "\t interrupt = 0x%02" PRIx8 "\n" - "\t interrupt_ctx_id = %" PRIu32 "\n", - action, gcr_cntl, dst, cache_policy, reinterpret_cast(address), data_sel, - data, gds_offset, gds_size, interrupt, interrupt_ctx_id); - } - EXIT_NOT_IMPLEMENTED(buf == nullptr); EXIT_NOT_IMPLEMENTED(dst > 1); EXIT_NOT_IMPLEMENTED(data_sel != 0 && data_sel != 1 && data_sel != 2 && data_sel != 3 && @@ -2950,13 +2883,6 @@ uint32_t* KYTY_SYSV_ABI AgcDcbEventWrite(CommandBuffer* buf, uint8_t event_type, const volatile void* address) { PRINT_NAME(); - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t event_type = 0x%02" PRIx8 "\n" - "\t address = 0x%016" PRIx64 "\n", - event_type, reinterpret_cast(address)); - } - EXIT_NOT_IMPLEMENTED(buf == nullptr); EXIT_NOT_IMPLEMENTED(event_type > 0x3fu); @@ -3011,17 +2937,6 @@ uint32_t* KYTY_SYSV_ABI AgcDcbAcquireMem(CommandBuffer* buf, uint8_t engine, uin uint64_t size_bytes, uint32_t poll_cycles) { PRINT_NAME(); - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t engine = 0x%02" PRIx8 "\n" - "\t cb_db_op = 0x%08" PRIx32 "\n" - "\t gcr_cntl = 0x%08" PRIx32 "\n" - "\t base = 0x%016" PRIx64 "\n" - "\t size_bytes = 0x%016" PRIx64 "\n" - "\t poll_cycles = %" PRIu32 "\n", - engine, cb_db_op, gcr_cntl, reinterpret_cast(base), size_bytes, poll_cycles); - } - EXIT_NOT_IMPLEMENTED(buf == nullptr); auto* cmd = buf->AllocateDW(8);