From fc98cb482f8617336123463cffb94e29f86e70a8 Mon Sep 17 00:00:00 2001 From: Elizabeth Figura Date: Wed, 13 Nov 2024 19:15:22 -0600 Subject: [PATCH] vkd3d-shader/ir: Add a couple of traces for signature remapping. --- libs/vkd3d-shader/ir.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index 871d558f..46a0a356 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -1087,6 +1087,9 @@ static enum vkd3d_result vsir_program_remap_output_signature(struct vsir_program e->target_location = map->input_register_index; + TRACE("Mapping signature index %u (mask %#x) to target location %u (mask %#x).\n", + i, e->mask, map->input_register_index, map->input_mask); + if ((input_mask & e->mask) == input_mask) { ++subset_varying_count; @@ -1107,6 +1110,8 @@ static enum vkd3d_result vsir_program_remap_output_signature(struct vsir_program } else { + TRACE("Marking signature index %u (mask %#x) as unused.\n", i, e->mask); + e->target_location = SIGNATURE_TARGET_LOCATION_UNUSED; }