[Mesa-dev] [RFC 2/2] anv: enable VK_EXT_shader_viewport_index_layer
Iago Toral
itoral at igalia.com
Wed Feb 28 07:27:31 UTC 2018
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
However, I think we should not push this until we have testing coverage
for using gl_Layer from Vertex and TessEval shaders. For now you only
submitted a test for gl_ViewportIndex to CTS right?
Iago
On Fri, 2018-02-23 at 14:09 -0800, Caio Marcelo de Oliveira Filho
wrote:
> ---
> src/intel/vulkan/anv_extensions.py | 1 +
> src/intel/vulkan/anv_pipeline.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_extensions.py
> b/src/intel/vulkan/anv_extensions.py
> index 581921e62a..00760fdd4e 100644
> --- a/src/intel/vulkan/anv_extensions.py
> +++ b/src/intel/vulkan/anv_extensions.py
> @@ -86,6 +86,7 @@ EXTENSIONS = [
> Extension('VK_KHX_multiview', 1, True),
> Extension('VK_EXT_debug_report', 8, True),
> Extension('VK_EXT_external_memory_dma_buf', 1, True),
> + Extension('VK_EXT_shader_viewport_index_layer', 1, True),
> ]
>
> class VkVersion:
> diff --git a/src/intel/vulkan/anv_pipeline.c
> b/src/intel/vulkan/anv_pipeline.c
> index e16a7a1994..115e1374d3 100644
> --- a/src/intel/vulkan/anv_pipeline.c
> +++ b/src/intel/vulkan/anv_pipeline.c
> @@ -143,6 +143,7 @@ anv_shader_compile_to_nir(struct anv_pipeline
> *pipeline,
> .multiview = true,
> .variable_pointers = true,
> .storage_16bit = device->instance->physicalDevice.info.gen
> >= 8,
> + .shader_viewport_index_layer = true,
> },
> };
>
More information about the mesa-dev
mailing list