| 1 |
/* |
| 2 |
* Copyright © 2024 Collabora Ltd. |
| 3 |
* SPDX-License-Identifier: MIT |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef PANVK_BLEND_H |
| 7 |
#define PANVK_BLEND_H |
| 8 |
|
| 9 |
#include <stdbool.h> |
| 10 |
|
| 11 |
#include "util/bitscan.h" |
| 12 |
#include "util/hash_table.h" |
| 13 |
#include "util/macros.h" |
| 14 |
#include "util/simple_mtx.h" |
| 15 |
|
| 16 |
#include "pan_blend.h" |
| 17 |
|
| 18 |
#include "panvk_macros.h" |
| 19 |
#include "panvk_mempool.h" |
| 20 |
|
| 21 |
#include "vk_graphics_state.h" |
| 22 |
|
| 23 |
struct panvk_cmd_buffer; |
| 24 |
|
| 25 |
#ifdef PAN_ARCH |
| 26 |
|
| 27 |
struct panvk_blend_info { |
| 28 |
bool any_dest_read; |
| 29 |
bool needs_shader; |
| 30 |
bool shader_loads_blend_const; |
| 31 |
}; |
| 32 |
|
| 33 |
VkResult panvk_per_arch(blend_emit_descs)(struct panvk_cmd_buffer *cmdbuf, |
| 34 |
struct mali_blend_packed *bds); |
| 35 |
|
| 36 |
#endif |
| 37 |
|
| 38 |
#endif |