vkd3d-shader/hlsl: Allow storing to matrices.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani 2022-04-28 15:32:04 +02:00 committed by Alexandre Julliard
parent 1240a947d2
commit 38d7913f5f
4 changed files with 4 additions and 10 deletions

View File

@ -2047,12 +2047,6 @@ static void write_sm4_store(struct hlsl_ctx *ctx,
struct sm4_instruction instr;
unsigned int writemask;
if (store->lhs.var->data_type->type == HLSL_CLASS_MATRIX)
{
hlsl_fixme(ctx, &store->node.loc, "Store to a matrix variable.");
return;
}
memset(&instr, 0, sizeof(instr));
instr.opcode = VKD3D_SM4_OP_MOV;

View File

@ -68,5 +68,5 @@ float4 main() : SV_TARGET
}
[test]
todo draw quad
draw quad
probe all rgba (21, 22, 31, 32)

View File

@ -74,5 +74,5 @@ float4 main() : SV_TARGET
}
[test]
todo draw quad
draw quad
probe all rgba (1.0, 5.0, 7.0, 12.0)

View File

@ -56,7 +56,7 @@ float4 main() : sv_target
}
[test]
todo draw quad
draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
[pixel shader]
@ -68,7 +68,7 @@ float4 main() : sv_target
}
[test]
todo draw quad
draw quad
probe all rgba (5.0, 6.0, 7.0, 0.0)
[pixel shader fail]