From f156af9ec6b6425d5e18aa55b311cc626af78009 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 5 Aug 2024 20:33:38 +0300 Subject: [PATCH] anv: expose helper function outside of anv_pipeline.c Signed-off-by: Lionel Landwerlin Reviewed-by: Ivan Briano Part-of: --- src/intel/vulkan/anv_nir.h | 7 +++++-- src/intel/vulkan/anv_pipeline.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_nir.h b/src/intel/vulkan/anv_nir.h index 1f6326ff124..723fe50d5a6 100644 --- a/src/intel/vulkan/anv_nir.h +++ b/src/intel/vulkan/anv_nir.h @@ -31,6 +31,8 @@ extern "C" { #endif +struct vk_pipeline_robustness_state; + #define anv_drv_const_offset(field) \ (offsetof(struct anv_push_constants, field)) #define anv_drv_const_size(field) \ @@ -54,8 +56,6 @@ extern "C" { .base = anv_drv_const_offset(field), \ .range = anv_drv_const_size(field)) - - /* This map is represent a mapping where the key is the NIR * nir_intrinsic_resource_intel::block index. It allows mapping bindless UBOs * accesses to descriptor entry. @@ -68,6 +68,9 @@ struct anv_pipeline_push_map { struct anv_pipeline_binding *block_to_descriptor; }; +enum brw_robustness_flags +anv_get_robust_flags(const struct vk_pipeline_robustness_state *rstate); + bool anv_check_for_primitive_replication(struct anv_device *device, VkShaderStageFlags stages, nir_shader **shaders, diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 8d70fcc9ffc..1a861380656 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -304,7 +304,7 @@ anv_stage_allocate_bind_map_tables(struct anv_pipeline *pipeline, }; } -static enum brw_robustness_flags +enum brw_robustness_flags anv_get_robust_flags(const struct vk_pipeline_robustness_state *rstate) { return