diff options
-rw-r--r-- | src/gallium/drivers/panfrost/meson.build | 1 | ||||
-rw-r--r-- | src/gallium/drivers/panfrost/pan_resource.h | 8 | ||||
-rw-r--r-- | src/panfrost/encoder/meson.build | 1 | ||||
-rw-r--r-- | src/panfrost/encoder/pan_afbc.c (renamed from src/gallium/drivers/panfrost/pan_afbc.c) | 3 | ||||
-rw-r--r-- | src/panfrost/encoder/pan_texture.h | 9 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/gallium/drivers/panfrost/meson.build b/src/gallium/drivers/panfrost/meson.build index 87eb74b5305..7b01ee47635 100644 --- a/src/gallium/drivers/panfrost/meson.build +++ b/src/gallium/drivers/panfrost/meson.build @@ -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', diff --git a/src/gallium/drivers/panfrost/pan_resource.h b/src/gallium/drivers/panfrost/pan_resource.h index 2af06208f2c..7173526023f 100644 --- a/src/gallium/drivers/panfrost/pan_resource.h +++ b/src/gallium/drivers/panfrost/pan_resource.h @@ -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 diff --git a/src/panfrost/encoder/meson.build b/src/panfrost/encoder/meson.build index d1335ab8f02..650289586fa 100644 --- a/src/panfrost/encoder/meson.build +++ b/src/panfrost/encoder/meson.build @@ -22,6 +22,7 @@ libpanfrost_encoder_files = files( 'pan_encoder.h', + 'pan_afbc.c', 'pan_attributes.c', 'pan_invocation.c', 'pan_sampler.c', diff --git a/src/gallium/drivers/panfrost/pan_afbc.c b/src/panfrost/encoder/pan_afbc.c index 9de10e4ac48..f29020e15b8 100644 --- a/src/gallium/drivers/panfrost/pan_afbc.c +++ b/src/panfrost/encoder/pan_afbc.c @@ -24,8 +24,7 @@ * Alyssa Rosenzweig <[email protected]> */ -#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 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 |