mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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 <olv@lunarg.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
417f5ea00d
commit
510465016b
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue