Skip to content
Snippets Groups Projects

vkd3d-shader/hlsl: A couple of type refactors.

Merged Elizabeth Figura requested to merge zfigura/vkd3d:mr3 into master
1 unresolved thread
+ 1
2
@@ -3662,9 +3662,8 @@ void hlsl_replace_node(struct hlsl_ir_node *old, struct hlsl_ir_node *new)
const struct hlsl_type *old_type = old->data_type, *new_type = new->data_type;
struct hlsl_src *src, *next;
if (old_type != new_type)
if (hlsl_is_numeric_type(old_type))
{
VKD3D_ASSERT(hlsl_is_numeric_type(old_type));
VKD3D_ASSERT(hlsl_is_numeric_type(new_type));
VKD3D_ASSERT(old_type->e.numeric.dimx == new_type->e.numeric.dimx);
VKD3D_ASSERT(old_type->e.numeric.dimy == new_type->e.numeric.dimy);
Loading