From e9d3b9dfd39cad7394be031f1726578cece16937 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Mon, 14 Jul 2025 22:30:00 +0200 Subject: [PATCH] vkd3d-shader/ir: Set dimension to VEC4 when converting SSAs to TEMPs. --- libs/vkd3d-shader/ir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index f787df3a4..b8388d5d0 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -8589,6 +8589,7 @@ static void temp_allocator_set_src(struct temp_allocator *allocator, struct vkd3 return; src->reg.type = VKD3DSPR_TEMP; + src->reg.dimension = VSIR_DIMENSION_VEC4; src->reg.idx[0].offset = reg->temp_id; src->swizzle = vsir_combine_swizzles(vsir_swizzle_from_writemask(reg->allocated_mask), src->swizzle); } @@ -8676,6 +8677,7 @@ static void temp_allocator_set_dst(struct temp_allocator *allocator, return; dst->reg.type = VKD3DSPR_TEMP; + dst->reg.dimension = VSIR_DIMENSION_VEC4; dst->reg.idx[0].offset = reg->temp_id; if (reg->allocated_mask != dst->write_mask) {