| 1 |
/* |
| 2 |
* Copyright 2025 Collabora Ltd. |
| 3 |
* SPDX-License-Identifier: MIT |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <stdatomic.h> |
| 7 |
#include <stdint.h> |
| 8 |
#include "compiler/libcl/libcl.h" |
| 9 |
#include "genxml/gen_macros.h" |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#if (PAN_ARCH == 6 || PAN_ARCH == 7) |
| 14 |
/* Keep in sync with panvk_varying_buf_id */ |
| 15 |
enum panlib_varying_buf_id { |
| 16 |
PANLIB_VARY_BUF_GENERAL, |
| 17 |
PANLIB_VARY_BUF_POSITION, |
| 18 |
PANLIB_VARY_BUF_PSIZ, |
| 19 |
|
| 20 |
/* Keep last */ |
| 21 |
PANLIB_VARY_BUF_MAX, |
| 22 |
}; |
| 23 |
|
| 24 |
struct libpan_draw_helper_index_min_max_result { |
| 25 |
uint32_t min; |
| 26 |
uint32_t max; |
| 27 |
}; |
| 28 |
|
| 29 |
struct libpan_draw_helper_varying_buf_info { |
| 30 |
uint64_t address; |
| 31 |
uint32_t size; |
| 32 |
atomic_uint offset; |
| 33 |
}; |
| 34 |
|
| 35 |
struct libpan_draw_helper_attrib_buf_info { |
| 36 |
uint32_t divisor; |
| 37 |
uint32_t stride; |
| 38 |
bool per_instance; |
| 39 |
}; |
| 40 |
|
| 41 |
struct libpan_draw_helper_attrib_info { |
| 42 |
uint32_t base_offset; |
| 43 |
|
| 44 |
/* When the attribute is per instance, the stride otherwise 0 */ |
| 45 |
uint32_t stride; |
| 46 |
}; |
| 47 |
#endif |