summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@collabora.com>2021-01-12 14:46:42 +0100
committerMarge Bot <eric+marge@anholt.net>2021-01-12 22:40:44 +0000
commit2cf41ae494043295f2d4b0334ffaa31be619eca8 (patch)
tree6a5a524368866df5adc1e91f8f8e8bea143f0a49 /src
parent6aed981e9dea77c90efacc768a6590280dbaebb6 (diff)
panfrost: Pass the resource dimension to panfrost_compression_tag()
The reload surface logic creates 2D image views pointing to a specific 3D texture layer, but panfrost_compression_tag() cares about the resource dimension, not the image view one. Fixes: 4dd7991422ce ("panfrost: Add a pan_image_layout object") Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8449>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/lib/pan_texture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/panfrost/lib/pan_texture.c b/src/panfrost/lib/pan_texture.c
index ae8183ea75f..73c9698e881 100644
--- a/src/panfrost/lib/pan_texture.c
+++ b/src/panfrost/lib/pan_texture.c
@@ -363,7 +363,10 @@ panfrost_emit_texture_payload(const struct panfrost_device *dev,
bool manual_stride,
mali_ptr base)
{
- base |= panfrost_compression_tag(dev, desc, dim, layout->modifier);
+ /* panfrost_compression_tag() wants the dimension of the resource, not the
+ * one of the image view (those might differ).
+ */
+ base |= panfrost_compression_tag(dev, desc, layout->dim, layout->modifier);
/* Inject the addresses in, interleaving array indices, mip levels,
* cube faces, and strides in that order */