From f8e05f5f0559e1216f0cc1210fe2252b55a38e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Mon, 10 Apr 2017 12:27:37 +0200 Subject: [PATCH] wined3d: Use register mask for SV_IsFrontFace pixel shader inputs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/glsl_shader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index c8a970f1ebf..1130b203619 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -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) {