aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/encoder/pan_texture.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-21 16:08:07 -0400
committerTomeu Vizoso <[email protected]>2020-04-24 06:55:05 +0200
commita3d2936a8e9e1c263e5d18b6832c238e7aa6700e (patch)
treecd5008723486c98bbfb2816a9b64d2ad0061323c /src/panfrost/encoder/pan_texture.h
parent36d49b1fb18a9b401c47d53ab75942d496c40e1c (diff)
panfrost: The texture descriptor has a pointer to a trampoline
Not to the texture itself, and can have a stride right after for linear textures. Signed-off-by: Alyssa Rosenzweig <[email protected]> Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4680>
Diffstat (limited to 'src/panfrost/encoder/pan_texture.h')
-rw-r--r--src/panfrost/encoder/pan_texture.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/panfrost/encoder/pan_texture.h b/src/panfrost/encoder/pan_texture.h
index 77c0eaaf049..d049ada9fdc 100644
--- a/src/panfrost/encoder/pan_texture.h
+++ b/src/panfrost/encoder/pan_texture.h
@@ -31,6 +31,7 @@
#include <stdbool.h>
#include "util/format/u_format.h"
#include "panfrost-job.h"
+#include "pan_bo.h"
struct panfrost_slice {
unsigned offset;
@@ -67,7 +68,7 @@ panfrost_afbc_header_size(unsigned width, unsigned height);
/* mali_texture_descriptor */
unsigned
-panfrost_estimate_texture_size(
+panfrost_estimate_texture_payload_size(
unsigned first_level, unsigned last_level,
unsigned first_layer, unsigned last_layer,
enum mali_texture_type type, enum mali_texture_layout layout);
@@ -100,7 +101,8 @@ panfrost_new_texture_bifrost(
unsigned cube_stride,
unsigned swizzle,
mali_ptr base,
- struct panfrost_slice *slices);
+ struct panfrost_slice *slices,
+ struct panfrost_bo *payload);
unsigned