<p dir="ltr">Now that timothy has made shader_info shared, this patch should probably be squashed into the previous one.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Nov 17, 2016 12:28 PM, "Plamena Manolova" <<a href="mailto:plamena.manolova@intel.com">plamena.manolova@intel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This extension allows the fragment shader to control whether values in<br>
gl_SampleMaskIn[] reflect the coverage after application of the early<br>
depth and stencil tests.<br>
<br>
Signed-off-by: Plamena Manolova <<a href="mailto:plamena.manolova@intel.com">plamena.manolova@intel.com</a>><br>
---<br>
 src/compiler/shader_info.h | 1 +<br>
 src/mesa/main/shaderapi.c  | 1 +<br>
 2 files changed, 2 insertions(+)<br>
<br>
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h<br>
index f0dfecc..760a899 100644<br>
--- a/src/compiler/shader_info.h<br>
+++ b/src/compiler/shader_info.h<br>
@@ -113,6 +113,7 @@ typedef struct shader_info {<br>
           * ARB_shader_image_load_store.<br>
           */<br>
          bool early_fragment_tests;<br>
+         bool post_depth_coverage;<br>
<br>
          /** gl_FragDepth layout for ARB_conservative_depth. */<br>
          enum gl_frag_depth_layout depth_layout;<br>
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c<br>
index 5db4137..9b35395 100644<br>
--- a/src/mesa/main/shaderapi.c<br>
+++ b/src/mesa/main/shaderapi.c<br>
@@ -2201,6 +2201,7 @@ _mesa_copy_linked_program_<wbr>data(const struct gl_shader_program *src,<br>
    case MESA_SHADER_FRAGMENT: {<br>
       dst->info.fs.depth_layout = src->FragDepthLayout;<br>
       dst->info.fs.early_fragment_<wbr>tests = dst_sh->info.<wbr>EarlyFragmentTests;<br>
+      dst->info.fs.post_depth_<wbr>coverage = dst_sh->info.<wbr>PostDepthCoverage;<br>
       break;<br>
    }<br>
    case MESA_SHADER_COMPUTE: {<br>
--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>