panfrost: Report TEXTURE_BUFFER_OBJECTS cap when gl3 flag set
authorIcecream95 <ixn@keemail.me>
Fri, 17 Jul 2020 10:15:42 +0000 (22:15 +1200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 15:05:21 +0000 (15:05 +0000)
OpenGL 3.3 is now reported again when PAN_MESA_DEBUG=gl3 is set.

Fixes: 96fa8d70bc1 ("panfrost: Report CAPs more honestly")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5947>

src/gallium/drivers/panfrost/pan_screen.c

index 125f84d85c49d7dbd7b8a061fc4462076378c074..cd9b41d1d740f8e6453c230b65c76e0fba3f8fcf 100644 (file)
@@ -181,11 +181,11 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
         case PIPE_CAP_IMAGE_LOAD_FORMATTED:
         case PIPE_CAP_CUBE_MAP_ARRAY:
         case PIPE_CAP_COMPUTE:
-        case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
                 return is_deqp;
         case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
                 return is_deqp ? 65536 : 0;
 
+        case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
         case PIPE_CAP_QUERY_TIMESTAMP:
         case PIPE_CAP_CONDITIONAL_RENDER:
                 return is_gl3;