panfrost: Don't align to tile either for non-alignable textures

Submitted by Alyssa Rosenzweig on June 14, 2019, 11:41 p.m.

Details

Message ID 20190614234120.8566-1-alyssa.rosenzweig@collabora.com
State New
Headers show
Series "panfrost: Don't align to tile either for non-alignable textures" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Alyssa Rosenzweig June 14, 2019, 11:41 p.m.
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@collabora.com>
---
 src/gallium/drivers/panfrost/pan_resource.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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;