vkd3d-shader/hlsl: Offset register id for input/ouput variables.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Francisco Casas <fcasas@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani 2022-05-10 15:08:36 +02:00 committed by Alexandre Julliard
parent 1fc44e7be4
commit e39559690b

View File

@ -891,7 +891,7 @@ static void sm4_register_from_deref(struct hlsl_ctx *ctx, struct sm4_register *r
if (has_idx) if (has_idx)
{ {
reg->idx[0] = var->semantic.index; reg->idx[0] = var->semantic.index + offset / 4;
reg->idx_count = 1; reg->idx_count = 1;
} }
@ -922,7 +922,7 @@ static void sm4_register_from_deref(struct hlsl_ctx *ctx, struct sm4_register *r
if (has_idx) if (has_idx)
{ {
reg->idx[0] = var->semantic.index; reg->idx[0] = var->semantic.index + offset / 4;
reg->idx_count = 1; reg->idx_count = 1;
} }