From 9e3d2a7d9be29cc2d949d65198533ae9b4e3d398 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 17 Nov 2020 19:09:26 +0100 Subject: [PATCH] panfrost: Set depth for 3D textures on Bifrost Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/midgard.xml | 1 + src/panfrost/lib/pan_texture.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/panfrost/lib/midgard.xml b/src/panfrost/lib/midgard.xml index 97005c8..5587e3e 100644 --- a/src/panfrost/lib/midgard.xml +++ b/src/panfrost/lib/midgard.xml @@ -730,6 +730,7 @@ + diff --git a/src/panfrost/lib/pan_texture.c b/src/panfrost/lib/pan_texture.c index 8fb10d8..c668b28 100644 --- a/src/panfrost/lib/pan_texture.c +++ b/src/panfrost/lib/pan_texture.c @@ -474,6 +474,8 @@ panfrost_new_texture_bifrost( cfg.width = u_minify(width, first_level); cfg.height = u_minify(height, first_level); + if (dim == MALI_TEXTURE_DIMENSION_3D) + cfg.depth = u_minify(depth, first_level); cfg.swizzle = swizzle; cfg.texel_ordering = panfrost_modifier_to_layout(modifier); cfg.levels = last_level - first_level; -- 2.7.4