diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-02-18 12:17:59 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-02-21 07:27:01 -0500 |
commit | 58f14018b4f0e47d72f718f322f8aa0a5b8d0f0a (patch) | |
tree | 73e4bdc479dcfc718c84c9a3acac5491fab2f7a4 /src/panfrost/encoder/pan_texture.h | |
parent | 5ddf7ad9d2098d21e1346b8ceb2756901ae1b0c1 (diff) |
panfrost: Move pan_afbc.c to root
Now that PIPE formats are shared across Mesa, this well-documented piece
of code is a good fit for root panfrost, let's move it and get a little
closer to taming the mess of resources.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3858>
Diffstat (limited to 'src/panfrost/encoder/pan_texture.h')
-rw-r--r-- | src/panfrost/encoder/pan_texture.h | 9 |
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 |