From: Chia-I Wu Date: Tue, 18 Feb 2014 04:25:06 +0000 (+0800) Subject: mesa: propagate FragDepthLayout to gl_program X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=510465016b70ea64706543a35dbc51b26176de17;p=mesa.git 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 --- 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;