d3dcompiler: Remove a redundant check for writemasks on non-numeric types.

This can only happen if a swizzle is emitted on a non-numeric type, but this is
checked when emitting swizzles.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-06-03 21:06:51 -05:00 committed by Alexandre Julliard
parent 9ba2bb0f3b
commit 24a4f52bbf
1 changed files with 0 additions and 7 deletions

View File

@ -1514,13 +1514,6 @@ struct hlsl_ir_node *make_assignment(struct hlsl_ir_node *lhs, enum parse_assign
DWORD bitmask; DWORD bitmask;
enum hlsl_type_class type_class; enum hlsl_type_class type_class;
if (lhs->data_type->type > HLSL_CLASS_LAST_NUMERIC)
{
hlsl_report_message(lhs->loc, HLSL_LEVEL_ERROR,
"writemask on a non scalar/vector/matrix type");
d3dcompiler_free(assign);
return NULL;
}
bitmask = writemask & ((1 << lhs->data_type->dimx) - 1); bitmask = writemask & ((1 << lhs->data_type->dimx) - 1);
while (bitmask) while (bitmask)
{ {