panvk: Make panvk_pipeline_layout per-gen
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Reviewed-by: Rebecca Mckeever <rebecca.mckeever@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28170>
This commit is contained in:

committed by
Marge Bot

parent
ea98467a2d
commit
d7517afa81
@@ -6,6 +6,10 @@
|
||||
#ifndef PANVK_PIPELINE_LAYOUT_H
|
||||
#define PANVK_PIPELINE_LAYOUT_H
|
||||
|
||||
#ifndef PAN_ARCH
|
||||
#error "PAN_ARCH must be defined"
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "vk_pipeline_layout.h"
|
||||
@@ -48,13 +52,11 @@ struct panvk_pipeline_layout {
|
||||
VK_DEFINE_NONDISP_HANDLE_CASTS(panvk_pipeline_layout, vk.base, VkPipelineLayout,
|
||||
VK_OBJECT_TYPE_PIPELINE_LAYOUT)
|
||||
|
||||
#ifdef PAN_ARCH
|
||||
unsigned panvk_per_arch(pipeline_layout_ubo_start)(
|
||||
const struct panvk_pipeline_layout *layout, unsigned set, bool is_dynamic);
|
||||
|
||||
unsigned panvk_per_arch(pipeline_layout_ubo_index)(
|
||||
const struct panvk_pipeline_layout *layout, unsigned set, unsigned binding,
|
||||
unsigned array_index);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user