[PATCH vkd3d 1/5] vkd3d-shader/hlsl: SM4 immediate constants do not have a register index.

Giovanni Mascellani gmascellani at codeweavers.com
Mon Oct 4 09:52:38 CDT 2021


Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>

Il 04/10/21 02:19, Zebediah Figura ha scritto:
> Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
> ---
>   libs/vkd3d-shader/hlsl_sm4.c | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/libs/vkd3d-shader/hlsl_sm4.c b/libs/vkd3d-shader/hlsl_sm4.c
> index f72494311..328a8ba1b 100644
> --- a/libs/vkd3d-shader/hlsl_sm4.c
> +++ b/libs/vkd3d-shader/hlsl_sm4.c
> @@ -961,8 +961,6 @@ static void write_sm4_constant(struct hlsl_ctx *ctx,
>   
>       instr.srcs[0].reg.dim = (dimx > 1) ? VKD3D_SM4_DIMENSION_VEC4 : VKD3D_SM4_DIMENSION_SCALAR;
>       instr.srcs[0].reg.type = VKD3D_SM4_RT_IMMCONST;
> -    instr.srcs[0].reg.idx[0] = constant->reg.id;
> -    instr.srcs[0].reg.idx_count = 1;
>       for (i = 0; i < dimx; ++i)
>           instr.srcs[0].reg.immconst_uint[i] = constant->value[i].u;
>       instr.src_count = 1,
> 



More information about the wine-devel mailing list