[Mesa-dev] [PATCH v8 2/2] anv: enable VK_EXT_shader_stencil_export
Jason Ekstrand
jason at jlekstrand.net
Fri May 11 23:52:25 UTC 2018
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Fri, May 11, 2018 at 4:35 PM, Caio Marcelo de Oliveira Filho <
caio.oliveira at intel.com> wrote:
> From: Gustavo Lima Chaves <gustavo.lima.chaves at intel.com>
>
> ---
> src/intel/vulkan/anv_extensions.py | 1 +
> src/intel/vulkan/anv_pipeline.c | 1 +
> src/intel/vulkan/genX_pipeline.c | 1 +
> 3 files changed, 3 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_
> extensions.py
> index b5bee0881ce..8160864685f 100644
> --- a/src/intel/vulkan/anv_extensions.py
> +++ b/src/intel/vulkan/anv_extensions.py
> @@ -112,6 +112,7 @@ EXTENSIONS = [
> Extension('VK_EXT_global_priority', 1,
> 'device->has_context_priority'),
> Extension('VK_EXT_shader_viewport_index_layer', 1, True),
> + Extension('VK_EXT_shader_stencil_export', 1,
> 'device->info.gen >= 9'),
> ]
>
> class VkVersion:
> diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_
> pipeline.c
> index 8f30136b100..240bde036d6 100644
> --- a/src/intel/vulkan/anv_pipeline.c
> +++ b/src/intel/vulkan/anv_pipeline.c
> @@ -152,6 +152,7 @@ anv_shader_compile_to_nir(struct anv_pipeline
> *pipeline,
> .subgroup_quad = true,
> .subgroup_shuffle = true,
> .subgroup_vote = true,
> + .stencil_export = device->instance->physicalDevice.info.gen >=
> 9,
> },
> };
>
> diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_
> pipeline.c
> index 6016d257584..462c59451cc 100644
> --- a/src/intel/vulkan/genX_pipeline.c
> +++ b/src/intel/vulkan/genX_pipeline.c
> @@ -1600,6 +1600,7 @@ emit_3dstate_ps_extra(struct anv_pipeline *pipeline,
> ps.PixelShaderHasUAV = true;
>
> #if GEN_GEN >= 9
> + ps.PixelShaderComputesStencil = wm_prog_data->computed_stencil;
> ps.PixelShaderPullsBary = wm_prog_data->pulls_bary;
> ps.InputCoverageMaskState = wm_prog_data->uses_sample_mask ?
> ICMS_INNER_CONSERVATIVE : ICMS_NONE;
> --
> 2.17.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180511/aff61a03/attachment.html>
More information about the mesa-dev
mailing list