anv: Enable VK_KHX_multiview and SPV_KHR_multiview
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 23 Mar 2017 00:43:10 +0000 (17:43 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 May 2017 18:25:46 +0000 (11:25 -0700)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_pipeline.c

index d9fbfefe3177487c6c14b1fffc42491bb4c724b8..fc5baac0ac042c4792938240e254b529a18c36a3 100644 (file)
@@ -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 *
index 643db9cb9f2b5c57aea2f74d748d6b9bf275f3bf..e96e2fcedbad4b8199dd83148674b74ebd601beb 100644 (file)
@@ -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 =