From ef2f490b20e9ac3f068064ed02850cfe2b6165a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Thu, 17 Aug 2017 12:13:50 +0200 Subject: [PATCH] libs/vkd3d-shader: Do not try to find matching signature element for system-value inputs. Silences false-positive FIXME() messages. --- libs/vkd3d-shader/spirv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c index b4506d72..ee13b470 100644 --- a/libs/vkd3d-shader/spirv.c +++ b/libs/vkd3d-shader/spirv.c @@ -2509,8 +2509,6 @@ static uint32_t vkd3d_dxbc_compiler_emit_input(struct vkd3d_dxbc_compiler *compi || reg->type == VKD3DSPR_PRIMID)) write_mask = VKD3DSP_WRITEMASK_0; - signature_element = vkd3d_find_signature_element_for_reg(compiler->input_signature, - NULL, reg, write_mask); builtin = vkd3d_get_spirv_builtin(reg->type, sysval); component_idx = vkd3d_write_mask_get_component_idx(write_mask); @@ -2522,6 +2520,8 @@ static uint32_t vkd3d_dxbc_compiler_emit_input(struct vkd3d_dxbc_compiler *compi } else { + signature_element = vkd3d_find_signature_element_for_reg(compiler->input_signature, + NULL, reg, write_mask); component_type = signature_element ? signature_element->component_type : VKD3D_TYPE_FLOAT; input_component_count = component_count; }