wined3d: Use register mask for SV_IsFrontFace pixel shader inputs.

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 2017-04-10 12:27:37 +02:00 committed by Alexandre Julliard
parent 47f506a1e1
commit f8e05f5f05
1 changed files with 2 additions and 3 deletions

View File

@ -6440,9 +6440,8 @@ static void shader_glsl_input_pack(const struct wined3d_shader *shader, struct w
}
else if (input->sysval_semantic == WINED3D_SV_IS_FRONT_FACE)
{
shader_addline(buffer, "ps_in[%u] = vec4("
"uintBitsToFloat(gl_FrontFacing ? 0xffffffffu : 0u), 0.0, 0.0, 0.0);\n",
input->register_idx);
shader_addline(buffer, "ps_in[%u]%s = uintBitsToFloat(gl_FrontFacing ? 0xffffffffu : 0u);\n",
input->register_idx, reg_mask);
}
else if (input->sysval_semantic == WINED3D_SV_RENDER_TARGET_ARRAY_INDEX && !semantic_idx)
{