mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
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:
parent
1bb21f0ea0
commit
07ffccd186
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user