lavapipe: Advertise AMDX_shader_enqueue

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24512>
This commit is contained in:
Konstantin Seurer
2023-08-01 14:38:19 +02:00
committed by Marge Bot
parent ce4af69d7e
commit f6f302bbbc
2 changed files with 16 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ static const struct vk_device_extension_table lvp_device_extensions_supported =
.EXT_provoking_vertex = true,
.EXT_line_rasterization = true,
.EXT_robustness2 = true,
.AMDX_shader_enqueue = true,
.GOOGLE_decorate_string = true,
.GOOGLE_hlsl_functionality1 = true,
.NV_device_generated_commands = true,
@@ -584,6 +585,11 @@ lvp_get_features(const struct lvp_physical_device *pdevice,
/* maintenance5 */
.maintenance5 = true,
/* VK_AMDX_shader_enqueue */
#ifdef VK_ENABLE_BETA_EXTENSIONS
.shaderEnqueue = true,
#endif
};
}
@@ -994,6 +1000,15 @@ lvp_get_properties(const struct lvp_physical_device *device, struct vk_propertie
.prefersLocalInvocationPrimitiveOutput = true,
.prefersCompactVertexOutput = true,
.prefersCompactPrimitiveOutput = false,
/* VK_AMDX_shader_enqueue */
#ifdef VK_ENABLE_BETA_EXTENSIONS
.maxExecutionGraphDepth = 32,
.maxExecutionGraphShaderOutputNodes = LVP_MAX_EXEC_GRAPH_PAYLOADS,
.maxExecutionGraphShaderPayloadSize = 0xFFFF,
.maxExecutionGraphShaderPayloadCount = LVP_MAX_EXEC_GRAPH_PAYLOADS,
.executionGraphDispatchAddressAlignment = 4,
#endif
};
/* Vulkan 1.0 */

View File

@@ -332,6 +332,7 @@ compile_spirv(struct lvp_device *pdevice, const VkPipelineShaderStageCreateInfo
.descriptor_array_non_uniform_indexing = true,
.descriptor_indexing = true,
.runtime_descriptor_array = true,
.shader_enqueue = true,
},
.ubo_addr_format = nir_address_format_vec2_index_32bit_offset,
.ssbo_addr_format = nir_address_format_vec2_index_32bit_offset,