From 510465016b70ea64706543a35dbc51b26176de17 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 18 Feb 2014 12:25:06 +0800 Subject: [PATCH] mesa: propagate FragDepthLayout to gl_program The information was lost during linking, causing the layout to be treated as FRAG_DEPTH_LAYOUT_NONE. Signed-off-by: Chia-I Wu Reviewed-by: Kenneth Graunke --- src/mesa/main/shaderapi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 6f84acd01f6..28739daeb97 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -1879,6 +1879,11 @@ _mesa_copy_linked_program_data(gl_shader_stage type, dst_gp->UsesEndPrimitive = src->Geom.UsesEndPrimitive; } break; + case MESA_SHADER_FRAGMENT: { + struct gl_fragment_program *dst_fp = (struct gl_fragment_program *) dst; + dst_fp->FragDepthLayout = src->FragDepthLayout; + } + break; case MESA_SHADER_COMPUTE: { struct gl_compute_program *dst_cp = (struct gl_compute_program *) dst; int i; -- 2.30.2