From 502a1ca30007252c6aae5850aba9e90796379678 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 28 Mar 2024 09:48:16 +0100 Subject: [PATCH] pan/bi: Allow subpass sampler dims Those are just regular 2D[MS] textures. Signed-off-by: Boris Brezillon Reviewed-by: Mary Guillemard Part-of: --- src/panfrost/compiler/bifrost_compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index c996d426011..558caf362af 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -2982,6 +2982,8 @@ bifrost_tex_format(enum glsl_sampler_dim dim) case GLSL_SAMPLER_DIM_MS: case GLSL_SAMPLER_DIM_EXTERNAL: case GLSL_SAMPLER_DIM_RECT: + case GLSL_SAMPLER_DIM_SUBPASS: + case GLSL_SAMPLER_DIM_SUBPASS_MS: return 2; case GLSL_SAMPLER_DIM_3D: