libs/vkd3d-shader: Fix vkd3d_find_signature_element_for_reg().

The exact match of write masks between a shader signature and
dcl_input/dcl_output instructions isn't required.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-08-01 15:34:41 +02:00 committed by Alexandre Julliard
parent 1bb21f0ea0
commit 07ffccd186

View File

@ -3016,7 +3016,7 @@ static const struct vkd3d_shader_signature_element *vkd3d_find_signature_element
for (signature_idx = 0; signature_idx < signature->element_count; ++signature_idx)
{
if (signature->elements[signature_idx].register_index == reg_idx
&& (signature->elements[signature_idx].mask & 0xff) == write_mask)
&& (signature->elements[signature_idx].mask & write_mask) == write_mask)
{
if (signature_element_index)
*signature_element_index = signature_idx;