tu: Enable VK_KHR_multiview

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5720>
This commit is contained in:
Connor Abbott 2020-07-02 11:34:54 +02:00 committed by Marge Bot
parent c0c7dbd103
commit b708a1acb8
4 changed files with 5 additions and 3 deletions

View File

@ -432,7 +432,7 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
features->uniformAndStorageBuffer16BitAccess = false;
features->storagePushConstant16 = false;
features->storageInputOutput16 = false;
features->multiview = false;
features->multiview = true;
features->multiviewGeometryShader = false;
features->multiviewTessellationShader = false;
features->variablePointersStorageBuffer = true;
@ -504,7 +504,7 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES: {
VkPhysicalDeviceMultiviewFeatures *features =
(VkPhysicalDeviceMultiviewFeatures *) ext;
features->multiview = false;
features->multiview = true;
features->multiviewGeometryShader = false;
features->multiviewTessellationShader = false;
break;

View File

@ -92,6 +92,7 @@ EXTENSIONS = [
Extension('VK_EXT_4444_formats', 1, True),
Extension('VK_EXT_conditional_rendering', 1, True),
Extension('VK_EXT_custom_border_color', 12, True),
Extension('VK_KHR_multiview', 1, True),
]
MAX_API_VERSION = VkVersion(MAX_API_VERSION)

View File

@ -95,7 +95,7 @@ typedef uint32_t xcb_window_t;
#define MAX_DYNAMIC_BUFFERS \
(MAX_DYNAMIC_UNIFORM_BUFFERS + MAX_DYNAMIC_STORAGE_BUFFERS)
#define TU_MAX_DRM_DEVICES 8
#define MAX_VIEWS 8
#define MAX_VIEWS 16
#define MAX_BIND_POINTS 2 /* compute + graphics */
/* The Qualcomm driver exposes 0x20000058 */
#define MAX_STORAGE_BUFFER_RANGE 0x20000000

View File

@ -67,6 +67,7 @@ tu_spirv_to_nir(struct ir3_compiler *compiler,
.draw_parameters = true,
.variable_pointers = true,
.stencil_export = true,
.multiview = true,
},
};
const nir_shader_compiler_options *nir_options =