summaryrefslogtreecommitdiff
path: root/src/panfrost/encoder/pan_texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/encoder/pan_texture.h')
-rw-r--r--src/panfrost/encoder/pan_texture.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/panfrost/encoder/pan_texture.h b/src/panfrost/encoder/pan_texture.h
index 54b2e39122e..043fcc3af10 100644
--- a/src/panfrost/encoder/pan_texture.h
+++ b/src/panfrost/encoder/pan_texture.h
@@ -29,6 +29,7 @@
#define __PAN_TEXTURE_H
#include <stdbool.h>
+#include "util/format/u_format.h"
struct panfrost_slice {
unsigned offset;
@@ -54,4 +55,12 @@ panfrost_compute_checksum_size(
unsigned width,
unsigned height);
+/* AFBC */
+
+bool
+panfrost_format_supports_afbc(enum pipe_format format);
+
+unsigned
+panfrost_afbc_header_size(unsigned width, unsigned height);
+
#endif