mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: SM4 immediate constants do not have a register index.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
18e838a1cc
commit
ded7b381e5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user