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 <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3858>
This commit is contained in:
Alyssa Rosenzweig
2020-02-18 12:17:59 -05:00
parent 5ddf7ad9d2
commit 58f14018b4
5 changed files with 11 additions and 11 deletions
-1
View File
@@ -30,7 +30,6 @@ files_panfrost = files(
'nir/nir_lower_framebuffer.c',
'pan_context.c',
'pan_afbc.c',
'pan_bo.c',
'pan_blit.c',
'pan_job.c',
@@ -95,14 +95,6 @@ panfrost_resource_hint_layout(
enum mali_texture_layout layout,
signed weight);
/* AFBC */
bool
panfrost_format_supports_afbc(enum pipe_format format);
unsigned
panfrost_afbc_header_size(unsigned width, unsigned height);
/* Blitting */
void
+1
View File
@@ -22,6 +22,7 @@
libpanfrost_encoder_files = files(
'pan_encoder.h',
'pan_afbc.c',
'pan_attributes.c',
'pan_invocation.c',
'pan_sampler.c',
@@ -24,8 +24,7 @@
* Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
*/
#include "pan_resource.h"
#include "util/format/u_format.h"
#include "pan_texture.h"
/* Arm FrameBuffer Compression (AFBC) is a lossless compression scheme natively
* implemented in Mali GPUs (as well as many display controllers paired with
+9
View File
@@ -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