<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 11, 2018 at 4:35 PM, Caio Marcelo de Oliveira Filho <span dir="ltr"><<a href="mailto:caio.oliveira@intel.com" target="_blank">caio.oliveira@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">From: Gustavo Lima Chaves <<a href="mailto:gustavo.lima.chaves@intel.com">gustavo.lima.chaves@intel.com</a><wbr>><br>
<br>
---<br>
src/intel/vulkan/anv_<wbr>extensions.py | 1 +<br>
src/intel/vulkan/anv_pipeline.<wbr>c | 1 +<br>
src/intel/vulkan/genX_<wbr>pipeline.c | 1 +<br>
3 files changed, 3 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/anv_<wbr>extensions.py b/src/intel/vulkan/anv_<wbr>extensions.py<br>
index b5bee0881ce..8160864685f 100644<br>
--- a/src/intel/vulkan/anv_<wbr>extensions.py<br>
+++ b/src/intel/vulkan/anv_<wbr>extensions.py<br>
@@ -112,6 +112,7 @@ EXTENSIONS = [<br>
Extension('VK_EXT_global_<wbr>priority', 1,<br>
'device->has_context_priority'<wbr>),<br>
Extension('VK_EXT_shader_<wbr>viewport_index_layer', 1, True),<br>
+ Extension('VK_EXT_shader_<wbr>stencil_export', 1, 'device->info.gen >= 9'),<br>
]<br>
<br>
class VkVersion:<br>
diff --git a/src/intel/vulkan/anv_<wbr>pipeline.c b/src/intel/vulkan/anv_<wbr>pipeline.c<br>
index 8f30136b100..240bde036d6 100644<br>
--- a/src/intel/vulkan/anv_<wbr>pipeline.c<br>
+++ b/src/intel/vulkan/anv_<wbr>pipeline.c<br>
@@ -152,6 +152,7 @@ anv_shader_compile_to_nir(<wbr>struct anv_pipeline *pipeline,<br>
.subgroup_quad = true,<br>
.subgroup_shuffle = true,<br>
.subgroup_vote = true,<br>
+ .stencil_export = device->instance-><wbr>physicalDevice.info.gen >= 9,<br>
},<br>
};<br>
<br>
diff --git a/src/intel/vulkan/genX_<wbr>pipeline.c b/src/intel/vulkan/genX_<wbr>pipeline.c<br>
index 6016d257584..462c59451cc 100644<br>
--- a/src/intel/vulkan/genX_<wbr>pipeline.c<br>
+++ b/src/intel/vulkan/genX_<wbr>pipeline.c<br>
@@ -1600,6 +1600,7 @@ emit_3dstate_ps_extra(struct anv_pipeline *pipeline,<br>
ps.PixelShaderHasUAV = true;<br>
<br>
#if GEN_GEN >= 9<br>
+ ps.PixelShaderComputesStencil = wm_prog_data->computed_<wbr>stencil;<br>
ps.PixelShaderPullsBary = wm_prog_data->pulls_bary;<br>
ps.InputCoverageMaskState = wm_prog_data->uses_sample_mask ?<br>
ICMS_INNER_CONSERVATIVE : ICMS_NONE;<br>
-- <br>
2.17.0<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>
</div></div></blockquote></div><br></div>