vkd3d-shader/ir: Set dimension to VEC4 when converting SSAs to TEMPs.

This commit is contained in:
Giovanni Mascellani
2025-07-14 22:30:00 +02:00
committed by Henri Verbeet
parent a7807dea08
commit e9d3b9dfd3
Notes: Henri Verbeet 2025-07-17 14:19:12 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1623

View File

@@ -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)
{