From 272b7e7d25d54ed7c428bde6977dcc2a57299dad Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 22 Mar 2017 17:43:10 -0700 Subject: [PATCH] anv: Enable VK_KHX_multiview and SPV_KHR_multiview Reviewed-by: Iago Toral Quiroga --- src/intel/vulkan/anv_device.c | 4 ++++ src/intel/vulkan/anv_pipeline.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index d9fbfefe317..fc5baac0ac0 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -370,6 +370,10 @@ static const VkExtensionProperties device_extensions[] = { .extensionName = VK_KHX_EXTERNAL_MEMORY_FD_EXTENSION_NAME, .specVersion = 1, }, + { + .extensionName = VK_KHX_MULTIVIEW_EXTENSION_NAME, + .specVersion = 1, + }, }; static void * diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 643db9cb9f2..e96e2fcedba 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -128,6 +128,7 @@ anv_shader_compile_to_nir(struct anv_pipeline *pipeline, .tessellation = true, .draw_parameters = true, .image_write_without_format = true, + .multiview = true, }; nir_function *entry_point = -- 2.30.2