mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
turnip: lower device index to zero
Vulkan 1.1 has VK_KHR_device_group and VK_KHR_device_group_creation promoted to core, thus we should handle DeviceIndex built-in. While we are here, also add these extensions to the extensions list, even though they are not doing anything useful. Fixes test: dEQP-VK.compute.device_group.device_index Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9516>
This commit is contained in:
parent
ee1f140fd9
commit
ae3b95daa7
3 changed files with 4 additions and 0 deletions
|
|
@ -139,6 +139,7 @@ static const nir_shader_compiler_options options_a6xx = {
|
|||
*/
|
||||
.lower_int64_options = (nir_lower_int64_options)~0,
|
||||
.lower_uniforms_to_ubo = true,
|
||||
.lower_device_index_to_zero = true,
|
||||
};
|
||||
|
||||
const nir_shader_compiler_options *
|
||||
|
|
|
|||
|
|
@ -103,6 +103,8 @@ EXTENSIONS = [
|
|||
Extension('VK_KHR_depth_stencil_resolve', 1, True),
|
||||
Extension('VK_KHR_performance_query', 1, 'device->instance->debug_flags & TU_DEBUG_PERFC'),
|
||||
Extension('VK_EXT_memory_budget', 1, True),
|
||||
Extension('VK_KHR_device_group', 4, True),
|
||||
Extension('VK_KHR_device_group_creation', 1, True),
|
||||
]
|
||||
|
||||
MAX_API_VERSION = VkVersion(MAX_API_VERSION)
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ tu_spirv_to_nir(struct tu_device *dev,
|
|||
.multiview = true,
|
||||
.shader_viewport_index_layer = true,
|
||||
.geometry_streams = true,
|
||||
.device_group = true,
|
||||
},
|
||||
};
|
||||
const nir_shader_compiler_options *nir_options =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue