From a6a56c8a44108c8bef64a1c23d98b39f0a0ed7ae Mon Sep 17 00:00:00 2001 From: nmzik Date: Mon, 21 Sep 2026 21:21:37 +0400 Subject: [PATCH] Remove obsolete partial indirect draw warnings --- src/graphics/guest_gpu/graphicsRun.cpp | 43 -------------------------- 1 file changed, 43 deletions(-) diff --git a/src/graphics/guest_gpu/graphicsRun.cpp b/src/graphics/guest_gpu/graphicsRun.cpp index 086d1e83d..903c41fe6 100644 --- a/src/graphics/guest_gpu/graphicsRun.cpp +++ b/src/graphics/guest_gpu/graphicsRun.cpp @@ -912,17 +912,6 @@ void CommandProcessor::DrawIndirect(uint32_t data_offset, uint32_t draw_initiato if (!indexed) { DrawIndirectArgs args {}; std::memcpy(&args, args_addr, sizeof(args)); - if (args.instance_count != 1u || args.start_vertex_location != 0u || - args.start_instance_location != 0u) { - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t warning: partial DrawIndirect args: vertex_count=%" PRIu32 - ", instance_count=%" PRIu32 ", start_vertex=%" PRIu32 - ", start_instance=%" PRIu32 "\n", - args.vertex_count_per_instance, args.instance_count, - args.start_vertex_location, args.start_instance_location); - } - } m_num_instances = args.instance_count; DrawIndexAuto({.vertex_count = args.vertex_count_per_instance, .instance_count = args.instance_count, @@ -934,16 +923,6 @@ void CommandProcessor::DrawIndirect(uint32_t data_offset, uint32_t draw_initiato DrawIndexedIndirectArgs args {}; std::memcpy(&args, args_addr, sizeof(args)); - if (args.base_vertex_location != 0u || args.start_instance_location != 0u) { - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t warning: partial DrawIndexIndirect args: index_count=%" PRIu32 - ", instance_count=%" PRIu32 ", start_index=%" PRIu32 ", base_vertex=%" PRIu32 - ", start_instance=%" PRIu32 "\n", - args.index_count_per_instance, args.instance_count, args.start_index_location, - args.base_vertex_location, args.start_instance_location); - } - } uint64_t index_size = 0; switch (m_index_type_and_size) { @@ -1005,17 +984,6 @@ void CommandProcessor::DrawIndirectMulti(uint32_t data_offset, uint32_t max_coun if (!indexed) { auto* args = reinterpret_cast(args_addr); - if (args->instance_count != 1u || args->start_vertex_location != 0u || - args->start_instance_location != 0u) { - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t warning: partial DrawIndirectMulti args[%u]: vertex_count=%" PRIu32 - ", instance_count=%" PRIu32 ", start_vertex=%" PRIu32 - ", start_instance=%" PRIu32 "\n", - i, args->vertex_count_per_instance, args->instance_count, - args->start_vertex_location, args->start_instance_location); - } - } m_num_instances = args->instance_count; DrawIndexAuto({.vertex_count = args->vertex_count_per_instance, .instance_count = args->instance_count, @@ -1026,17 +994,6 @@ void CommandProcessor::DrawIndirectMulti(uint32_t data_offset, uint32_t max_coun } auto* args = reinterpret_cast(args_addr); - if (args->base_vertex_location != 0u || args->start_instance_location != 0u) { - static std::atomic log_count {0}; - if (log_count.fetch_add(1) < 64) { - LOGF("\t warning: partial DrawIndexIndirectMulti args[%u]: index_count=%" PRIu32 - ", instance_count=%" PRIu32 ", start_index=%" PRIu32 ", base_vertex=%" PRIu32 - ", start_instance=%" PRIu32 "\n", - i, args->index_count_per_instance, args->instance_count, - args->start_index_location, args->base_vertex_location, - args->start_instance_location); - } - } uint64_t index_size = 0; switch (m_index_type_and_size) {