panfrost: Set PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 28 Aug 2020 13:53:30 +0000 (09:53 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 31 Aug 2020 11:46:32 +0000 (07:46 -0400)
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 <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6516>

docs/features.txt
src/gallium/drivers/panfrost/pan_screen.c

index 52a081dc3bed7741e00d800b0edbf432e7b5b42c..7746b29a0cc793963af64e4bb9942f8f412947fb 100644 (file)
@@ -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)
 
index b595362169ec9a840d8efa160757a804d52f7858..10bee917807190502e306f598afee306ad35e2bb 100644 (file)
@@ -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;