mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
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:
parent
1fc44e7be4
commit
e39559690b
@ -891,7 +891,7 @@ static void sm4_register_from_deref(struct hlsl_ctx *ctx, struct sm4_register *r
|
||||
|
||||
if (has_idx)
|
||||
{
|
||||
reg->idx[0] = var->semantic.index;
|
||||
reg->idx[0] = var->semantic.index + offset / 4;
|
||||
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)
|
||||
{
|
||||
reg->idx[0] = var->semantic.index;
|
||||
reg->idx[0] = var->semantic.index + offset / 4;
|
||||
reg->idx_count = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user