| 1 |
/* |
| 2 |
* Copyright (C) 2026 Arm Ltd. |
| 3 |
* |
| 4 |
* Derived from pan_texture.h which is: |
| 5 |
* Copyright (C) 2008 VMware, Inc. |
| 6 |
* Copyright (C) 2014 Broadcom |
| 7 |
* Copyright (C) 2018-2019 Alyssa Rosenzweig |
| 8 |
* Copyright (C) 2019-2020 Collabora, Ltd. |
| 9 |
* Copyright (C) 2025 Arm Ltd. |
| 10 |
* |
| 11 |
* SPDX-License-Identifier: MIT |
| 12 |
*/ |
| 13 |
|
| 14 |
#ifndef __PAN_BUFFER_H |
| 15 |
#define __PAN_BUFFER_H |
| 16 |
|
| 17 |
#ifndef PAN_ARCH |
| 18 |
#error "PAN_ARCH must be defined" |
| 19 |
#endif |
| 20 |
|
| 21 |
#include "genxml/gen_macros.h" |
| 22 |
|
| 23 |
struct pan_buffer_view; |
| 24 |
struct mali_buffer_packed; |
| 25 |
struct mali_attribute_buffer_packed; |
| 26 |
struct mali_attribute_packed; |
| 27 |
struct mali_texture_packed; |
| 28 |
struct pan_ptr; |
| 29 |
|
| 30 |
#if PAN_ARCH >= 9 |
| 31 |
void GENX(pan_buffer_texture_emit)(const struct pan_buffer_view *bview, |
| 32 |
struct mali_buffer_packed *out); |
| 33 |
#elif PAN_ARCH >= 6 |
| 34 |
void GENX(pan_buffer_texture_emit)(const struct pan_buffer_view *bview, |
| 35 |
struct mali_attribute_buffer_packed *out_buf, |
| 36 |
struct mali_attribute_packed *out_attrib); |
| 37 |
#else |
| 38 |
void GENX(pan_buffer_texture_emit)(const struct pan_buffer_view *bview, |
| 39 |
struct mali_texture_packed *out, |
| 40 |
const struct pan_ptr *payload); |
| 41 |
#endif |
| 42 |
|
| 43 |
#endif |