From 308d735923288e04a7ad418fbd201aa749c112aa Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 24 May 2024 12:58:39 +0200 Subject: [PATCH] vkd3d-shader/ir: Set texture register dimension as VEC4 when normalising combined samplers. Thanks, Giovanni. Signed-off-by: Nikolay Sivov --- libs/vkd3d-shader/ir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index 37818d4d..b3b745fc 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -1886,6 +1886,7 @@ static enum vkd3d_result vsir_program_normalise_combined_samplers(struct vsir_pr srcs[1].reg.idx[1] = ins->src[1].reg.idx[0]; srcs[1].reg.idx_count = 2; srcs[1].reg.data_type = VKD3D_DATA_RESOURCE; + srcs[1].reg.dimension = VSIR_DIMENSION_VEC4; srcs[1].swizzle = VKD3D_SHADER_NO_SWIZZLE; srcs[2].reg.type = VKD3DSPR_SAMPLER;