/* * Copyright 2025 Collabora Ltd. * SPDX-License-Identifier: MIT */ #include #include #include "compiler/libcl/libcl.h" #include "genxml/gen_macros.h" #pragma once #if (PAN_ARCH == 6 || PAN_ARCH == 7) /* Keep in sync with panvk_varying_buf_id */ enum panlib_varying_buf_id { PANLIB_VARY_BUF_GENERAL, PANLIB_VARY_BUF_POSITION, PANLIB_VARY_BUF_PSIZ, /* Keep last */ PANLIB_VARY_BUF_MAX, }; struct libpan_draw_helper_index_min_max_result { uint32_t min; uint32_t max; }; struct libpan_draw_helper_varying_buf_info { uint64_t address; uint32_t size; atomic_uint offset; }; struct libpan_draw_helper_attrib_buf_info { uint32_t divisor; uint32_t stride; bool per_instance; }; struct libpan_draw_helper_attrib_info { uint32_t base_offset; /* When the attribute is per instance, the stride otherwise 0 */ uint32_t stride; }; #endif