[PATCH vkd3d] vkd3d-shader/hlsl: Fix texture reservation trace.

Matteo Bruni mbruni at codeweavers.com
Tue Nov 9 06:54:39 CST 2021


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 libs/vkd3d-shader/hlsl_codegen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c
index 24b8205c..0bf18c2b 100644
--- a/libs/vkd3d-shader/hlsl_codegen.c
+++ b/libs/vkd3d-shader/hlsl_codegen.c
@@ -1240,7 +1240,7 @@ static void allocate_textures(struct hlsl_ctx *ctx)
 
             var->reg.id = var->reg_reservation.index;
             var->reg.allocated = true;
-            TRACE("Allocated reserved %s to t%u.\n", var->name, index);
+            TRACE("Allocated reserved %s to t%u.\n", var->name, var->reg_reservation.index);
         }
         else if (!var->reg_reservation.type)
         {
-- 
2.26.3




More information about the wine-devel mailing list