Now that timothy has made shader_info shared, this patch should probably be squashed into the previous one.
On Nov 17, 2016 12:28 PM, "Plamena Manolova" <plamena.manol...@intel.com> wrote: > This extension allows the fragment shader to control whether values in > gl_SampleMaskIn[] reflect the coverage after application of the early > depth and stencil tests. > > Signed-off-by: Plamena Manolova <plamena.manol...@intel.com> > --- > src/compiler/shader_info.h | 1 + > src/mesa/main/shaderapi.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h > index f0dfecc..760a899 100644 > --- a/src/compiler/shader_info.h > +++ b/src/compiler/shader_info.h > @@ -113,6 +113,7 @@ typedef struct shader_info { > * ARB_shader_image_load_store. > */ > bool early_fragment_tests; > + bool post_depth_coverage; > > /** gl_FragDepth layout for ARB_conservative_depth. */ > enum gl_frag_depth_layout depth_layout; > diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c > index 5db4137..9b35395 100644 > --- a/src/mesa/main/shaderapi.c > +++ b/src/mesa/main/shaderapi.c > @@ -2201,6 +2201,7 @@ _mesa_copy_linked_program_data(const struct > gl_shader_program *src, > case MESA_SHADER_FRAGMENT: { > dst->info.fs.depth_layout = src->FragDepthLayout; > dst->info.fs.early_fragment_tests = dst_sh->info. > EarlyFragmentTests; > + dst->info.fs.post_depth_coverage = dst_sh->info.PostDepthCoverage; > break; > } > case MESA_SHADER_COMPUTE: { > -- > 2.7.4 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev >
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev