[Mesa-dev] [PATCH] panfrost: Don't align to tile either for non-alignable textures

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Fri Jun 14 23:41:20 UTC 2019


Tag to the 3D texture series. With this it passes 100% of
dEQP-GLES3.functional.texture.format.unsized.*

I plan to squash this in but don't want to resend the whole series just
for this.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 src/gallium/drivers/panfrost/pan_resource.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c
index 81a74735592..e1b8cee74f3 100644
--- a/src/gallium/drivers/panfrost/pan_resource.c
+++ b/src/gallium/drivers/panfrost/pan_resource.c
@@ -201,6 +201,8 @@ panfrost_setup_slices(const struct pipe_resource *tmpl, struct panfrost_bo *bo)
         bool should_align_stride =
                 tmpl->target != PIPE_TEXTURE_3D;
 
+        should_align &= should_align_stride;
+
         unsigned offset = 0;
         unsigned size_2d = 0;
 
-- 
2.20.1



More information about the mesa-dev mailing list