From 8ff6e7c7399822a07a3b5f1ff71a848e6e092389 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 28 Aug 2020 09:53:30 -0400 Subject: [PATCH] panfrost: Set PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS Exposes ARB_texture_gather when PAN_MESA_DEBUG=deqp is set. Also update docs/features.txt. Fixes: dEQP-GLES31.functional.texture.gather.offset.implementation_offset.* Signed-off-by: Alyssa Rosenzweig Part-of: --- docs/features.txt | 2 +- src/gallium/drivers/panfrost/pan_screen.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index 52a081dc3be..7746b29a0cc 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -135,7 +135,7 @@ GL 4.0, GLSL 4.00 --- all DONE: i965/gen7+, nvc0, r600, radeonsi, llvmpipe, virg GL_ARB_texture_buffer_object_rgb32 DONE (freedreno, i965/gen6+, softpipe, swr) GL_ARB_texture_cube_map_array DONE (i965/gen6+, nv50, softpipe, swr, zink) GL_ARB_texture_gather DONE (freedreno, i965/gen6+, nv50, softpipe, swr, v3d) - GL_ARB_texture_query_lod DONE (freedreno, i965, nv50, softpipe, swr, v3d) + GL_ARB_texture_query_lod DONE (freedreno, i965, nv50, softpipe, swr, v3d, panfrost) GL_ARB_transform_feedback2 DONE (i965/gen6+, nv50, softpipe, swr, v3d) GL_ARB_transform_feedback3 DONE (i965/gen7+, softpipe, swr) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index b595362169e..10bee917807 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -233,6 +233,9 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param) return 1; + case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS: + return is_deqp ? 4 : 0; + case PIPE_CAP_MIN_TEXTURE_GATHER_OFFSET: return -8; -- 2.30.2