panfrost: Comment on state of ARB_shader_clock
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 16 Feb 2021 18:49:04 +0000 (13:49 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Feb 2021 21:48:22 +0000 (21:48 +0000)
Pending on kernel work.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9105>

src/gallium/drivers/panfrost/pan_screen.c

index 366c2236402d540b6a35d522dbbeb2e356e6743a..5e8acdd19d774240dc219ae472317cc4fac7c4e7 100644 (file)
@@ -134,6 +134,13 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
         case PIPE_CAP_ANISOTROPIC_FILTER:
                 return !!(dev->quirks & HAS_ANISOTROPIC);
 
+        /* Compile side is done for Bifrost, Midgard TODO. Needs some kernel
+         * work to turn on, since CYCLE_COUNT_START needs to be issued. In
+         * kbase, userspace requests this via BASE_JD_REQ_PERMON. There is not
+         * yet way to request this with mainline TODO */
+        case PIPE_CAP_TGSI_CLOCK:
+                return 0;
+
         case PIPE_CAP_TGSI_INSTANCEID:
         case PIPE_CAP_TEXTURE_MULTISAMPLE:
         case PIPE_CAP_SURFACE_SAMPLE_COUNT: