From 2247288003ef62507f196fe1fc7659e2f5da9dd7 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sat, 13 Jan 2024 18:53:01 -0600 Subject: [PATCH] vkd3d-shader/tpf: Set the user-packed flag for sm5.0 resources as well. --- libs/vkd3d-shader/tpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/tpf.c b/libs/vkd3d-shader/tpf.c index 038a97d9..4d065831 100644 --- a/libs/vkd3d-shader/tpf.c +++ b/libs/vkd3d-shader/tpf.c @@ -3285,7 +3285,7 @@ static struct extern_resource *sm4_get_extern_resources(struct hlsl_ctx *ctx, un extern_resources[*count].name = name; extern_resources[*count].data_type = component_type; - extern_resources[*count].is_user_packed = false; + extern_resources[*count].is_user_packed = !!var->reg_reservation.reg_type; extern_resources[*count].regset = regset; extern_resources[*count].id = var->regs[regset].id + regset_offset;