tu: Enable VK_KHR_multiview
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5720>
This commit is contained in:
parent
c0c7dbd103
commit
b708a1acb8
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue