anv: expose helper function outside of anv_pipeline.c
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36512>
This commit is contained in:
committed by
Marge Bot
parent
5f1cd42456
commit
f156af9ec6
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user